无法在Mac应用程式(OSX 10.9+ Xcode5 +)中新增自订字型 [英] Unable to add a custom font in Mac app (OSX 10.9+ Xcode5+)
问题描述
我已浏览过这些SO文章:
我尝试了完全相同但我无法向我的Mac应用程序添加自定义字体。
所有详细信息都显示在附件中。
Plist已更新:(试用字体和字体/两者)
>
在App Bundle中有Fonts文件夹路径:
但是我的代码无法找到并读取字体:
任何帮助/指出我的错误是非常感激。
感谢您的评论是PlanerReg的字体名称还是只是文件名?
$ b $
实际上,字体文件名是 PlanerReg
,但是实际的字体名称是 Planer
。
现在它的工作。
I have gone through these SO posts:
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.
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.
这篇关于无法在Mac应用程式(OSX 10.9+ Xcode5 +)中新增自订字型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!