Unable to add a custom font in Mac app (OSX 10.9+ Xcode5+)

那年仲夏 提交于 2019-12-01 02:23:58

问题


I have gone through these SO posts:

Embed font in a mac bundle

Custom font in a Cocoa application

I tried exactly same (rechecked multiple times), but I am not able to add a custom font to my Mac App.

All details are shown in attached pictures.

Plist is updated: (Tried Fonts and Fonts/ both)

In App Bundle it's there in Fonts folder path:

But my code is unable to find and read the font :

Any help / pointing out my mistake is highly appreciated.


回答1:


Thanks for the comment Is 'PlanerReg' the font name or just the file name?

This helped me out to figure the issue.

Actually the font file name is PlanerReg, but the actual font name is Planer.

Now its working.



来源:https://stackoverflow.com/questions/25279279/unable-to-add-a-custom-font-in-mac-app-osx-10-9-xcode5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!