【发布时间】:2012-01-14 06:17:30
【问题描述】:
我的 .ttf 文件无法在我的 iPhone 应用程序中运行。我将此文件添加到我的项目中:
gothamnarrowbook.ttf
我将此添加到我的 plist 中:
<key>UIAppFonts</key>
<array>
<string>gothamnarrowbook.ttf</string>
</array>
在我的 ViewController 中,我添加了这个:
UIFont *gnb = [UIFont fontWithName:@"gothamnarrowbook" size:22];
但是 gnb 是零。我做错了什么?
【问题讨论】:
-
你是否知道 gothamnarrowbook 是正确的字体名称?
-
字体名称和文件名不同吗?如果是这样,我在哪里可以找到它?