我遵循了这一点:http://forrst.com/posts/Using_custom_fonts_on_iPad_and_iPhone_with_Phone-u2P
我无法在 iPhone 上显示该字体。
我不确定的是;在哪里添加:“向您的 info.plist 添加一个名为“UIAppFonts”的数组键。在 item0 中输入包括扩展名的字体名称。”我没有 info.plist 文件,只有 PhoneGap.plist 和 app_name-Info.plist
我将其添加到两者中,但仍然没有任何结果。
您使用的字体有什么规则吗?
在 Xcode 4.3 中,选择侧边栏中的主项目文件(顶部的蓝色图标),然后对于“TARGETS”下的每个项目,转到“Info”选项卡。
Under there you should find a "Fonts provided by application" key. If it's not there it needs to be added by control-clicking (or "right-clicking") any of the existing keys and selecting "Add row". In the drop down find "Fonts provided by application" and use that. It should have the "Array" type by default, if it does not, add it.
单击左侧的箭头展开该键。
在下面您至少应该看到一个“Item 0”键。如果它没有值,请双击其“值”字段并输入第一个字体的名称。
对于每种其他字体,您可以单击任何项目旁边的“+”按钮(选择该项目时可见)来添加新行。
您还需要确保字体文件位于项目的“资源”文件夹中。我相信支持仅限于 .otf 和 .ttf。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)