gpt4 book ai didi

iphone - 无法在 iPhone 应用程序中使用自定义字体

转载 作者:可可西里 更新时间:2023-11-01 06:11:52 24 4
gpt4 key购买 nike

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

  • Gotham Rounded Book
  • Gotham Rounded Medium
  • Gotham 圆角粗体

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

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

这是记录的内容:

"GothamRoundedMedium-Regular",
"GothamRoundedBook-Regular"

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

enter image description here

enter image description here

最佳答案

这可能是因为您没有像图片那样在目标中包含 gothamroundedbold.ttf。选择辅助导航器检查丢失的字体文件的成员资格。在我的情况下它被选中,在你的情况下它应该被取消选中。
enter image description here`

关于iphone - 无法在 iPhone 应用程序中使用自定义字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10743093/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com