ios下自訂字型

來源:互聯網
上載者:User

文檔:Applications that want to use custom fonts can now include those fonts
in their application bundle and register those fonts with the system by including the UIAppFonts key in their Info.plist file.
The value of this key is an array of strings identifying the font files in the application’s bundle. When the system sees the key, it loads the specified fonts and makes them available to the application.


只需要在info.plist中添加UIAppFonts即可,然後在array中添加字型名即可,可添加多個字型。這項特性是3.2添加到sdk中的,3.2以前的版本無法使用。注意:ios5之前好像不支援otf格式的字型,所以最好用ttf格式的字型



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.