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

前端 未结 8 1202
故里飘歌
故里飘歌 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:08

    I had the same problem which was resolved with a slight variation on iphonc's solution. The case sensitivity was directly related to the file extension. The problem was associated with my font file named: Choc.TTF

    1. I had to remove the reference to the file in xCode 4.1
    2. Rename the file to Choc.ttf (note lower case file extension)
    3. Add the reference back into xCode
    4. Perform a clean and re-build for the device

    Conclusion (in my particular case):

    Case sensitivity applies not JUST to the file name, but to the file extension as well (i.e. iOS device appears to tolerate only lower case).

提交回复
热议问题