无法在Mac应用程式(OSX 10.9+ Xcode5 +)中新增自订字型 [英] Unable to add a custom font in Mac app (OSX 10.9+ Xcode5+)

查看:105
本文介绍了无法在Mac应用程式(OSX 10.9+ Xcode5 +)中新增自订字型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已浏览过这些SO文章:



在mac包中嵌入字体



在Cocoa应用程序中自定义字体



我尝试了完全相同但我无法向我的Mac应用程序添加自定义字体。



所有详细信息都显示在附件中。



Plist已更新:(试用字体和字体/两者)
>
在App Bundle中有Fonts文件夹路径:



但是我的代码无法找到并读取字体:



任何帮助/指出我的错误是非常感激。

解决方案

感谢您的评论是PlanerReg的字体名称还是只是文件名?


$ b $



实际上,字体文件名是 PlanerReg ,但是实际的字体名称是 Planer



现在它的工作。


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.

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆