Search code examples
objective-cmacoscocoansfont

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


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) enter image description here In App Bundle it's there in Fonts folder path: enter image description here

But my code is unable to find and read the font : enter image description here

Any help / pointing out my mistake is highly appreciated.


Solution

  • 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.