Can not include .ttf font into project

前端 未结 1 1104
梦毁少年i
梦毁少年i 2020-12-31 22:01

I am trying to include the font \"Hipchick\" into my project but it does not work. I have tested a few methods and ended up with this one: iOS tips: Custom Fonts to try to s

相关标签:
1条回答
  • 2020-12-31 22:40

    This is Step for, How to add custom font in Application.

    1 - Add .TTF font in your application
    2 - Modify the application-info.plist file.
    3 - Add the key "Fonts provided by application" to a new row
    4 - and add each .TTF file (of font) to each line.

    enter image description here

    For more info read This and This site.

    FOR MOREINFORMATION :

    But after adding font to your application, you need to apply/write real name of your font, so check How do I get the font name from an otf or ttf file?

    0 讨论(0)
提交回复
热议问题