Custom fonts on iOS app - working in Simulator but not iPad

前端 未结 8 1198
故里飘歌
故里飘歌 2021-02-08 07:11

Encountering a weird problem here. I\'m developing a game for my school project (non-commercial), and I\'m using a custom font Black Chancery (free under GNU GPL). I followed th

8条回答
  •  [愿得一人]
    2021-02-08 08:10

    I was having problem with font not recognizing, I fixed it by checking the correct name of the font by checking info of the font file by Get Info option. In my case the file name was written xyzfont.ttf but actually it was XyzFont.TTF in the info, i replaced and it worked.

    Hope, it helps someone.

    Another Way I have come across one more way of finding the correct name, is by installing the font in the FontBook..

    Just open FontBook from Finder and select User now from File->Add Fonts select the font you want to add into your application, after little processing the FontBook will show the Font listed in with the Correct name, use the name in the FontBook ignoring the actual ttf file name you have imported or, added to plist.. It should work..

提交回复
热议问题