4

我的 iPhone 应用程序中有 3 个 .ttf 文件。它们代表这 3 种字体:

  • 哥谭圆角书
  • 哥谭圆形中等
  • Gotham 圆角粗体

我把它们都放在了我的 .plist 中,但是当我这样做时只有 2 个出现:

NSLog(@"%@",[UIFont fontNamesForFamilyName:@"Gotham Rounded"]);

这是记录的内容:

"GothamRoundedMedium-Regular",
"GothamRoundedBook-Regular"

这里出了什么问题?截图如下。

在此处输入图像描述

在此处输入图像描述

4

1 回答 1

1

It might be due to the reason that you haven't included gothamroundedbold.ttf in your target as in image. Select assistance navigator Check the membership of the font file that is missing. In my case it is checked and in your case it should be unchecked.
enter image description here `

于 2012-05-24T18:29:40.350 回答