UIFont fontWithName returns nil

前端 未结 6 1230
我寻月下人不归
我寻月下人不归 2020-12-16 10:22

In my info.plist, I added a key \"Fonts provided by application\" and added EdwardianScriptITCStd.otf \"ent

6条回答
  •  囚心锁ツ
    2020-12-16 11:00

    The font name to be used seems to be the "Family name" in the Font Book. I tried the PostScript name, but it does not always work. Family Name, as far as I can tell, has always worked up until now.

    You can check this information, as mentioned in the above answer, inside Font Book, select the font and press cmd+I.

    Hope this helps...

提交回复
热议问题