UIFont fontWithName: limited to loading 2 variations per family

后端 未结 2 727
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-10 06:58

This question is extremely similar to UILabel with custom font displays *wrong* custom font, except I need to use three fonts from this family simultaneously. I am using Myriad

2条回答
  •  日久生厌
    2021-02-10 07:26

    Open Font Book application. If you installed the fonts yourself, go to user, look for the fonts you want and use the PostScript name of the font in your xcode project.

    It should work even for different font variations of the same family.

提交回复
热议问题