【发布时间】:2021-04-03 23:25:23
【问题描述】:
我正在尝试将自定义字体添加到我的应用程序中。我已经尝试遵循文档和其他与问题相关的文章中的所有标准建议。
我做了什么:
- installed the font to the Font Book
- copied ttf files to application directory
- added font files to the "Fonts provided by application" in Info.plist
- 在“目标会员”中检查了应用
- checked font files in "Copy Bundle Resources"
因此字体可见in Attribute Inspector 并在 LaunchScreen 故事板中成功更改。但是当我在模拟器中运行应用程序时,只应用大小和颜色,而不应用字体。
我在 Big Sur 使用 XCode 12.2 (12B45b)。
我还应该尝试什么?提前谢谢你。
【问题讨论】: