IoS-------------app uses custom font packs

Source: Internet
Author: User

In today's app, for the sake of aesthetics, the original font of the system and can not meet our needs, below we summarize how to use the third-party font package in our application

is a custom font package that is broadly divided into the following sections

1, in the project to add font package files, generally in. ttf format

2, Info.plist add one of the following: Fonts provided by Application , Increase Item : The name of the font file must be the same as the name you added in the project, or you will not find

3. [Uifont Familynames] , find the real name of the font, some names have been renamed, in the project will automatically restore the original name, I use the italics, find their own font

4. Use [Uifont fontwithname:@ "kaiti_gb2312" size:30] Set Font






IoS-------------app uses custom font packs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.