我已经浏览过这些帖子:
在 mac 包中嵌入字体
Cocoa 应用程序中的自定义字体
我尝试了完全相同的方法(重新检查多次),但我无法将自定义字体添加到我的 Mac 应用程序中。
所有详细信息均显示在附图中。
Plist is updated: (Tried Fonts and Fonts/ both)
In App Bundle it's there in Fonts folder path:
![enter image description here](https://i.stack.imgur.com/yo946.png)
But my code is unable to find and read the font :
![enter image description here](https://i.stack.imgur.com/L9rN0.png)
非常感谢任何帮助/指出我的错误。
感谢您的评论Is 'PlanerReg' the font name or just the file name?
这帮助我解决了这个问题。
实际上字体文件名是PlanerReg
,但实际的字体名称是Planer
.
现在它工作了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)