Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 我可以在 iPhone 应用程序中嵌入自定义字体吗?
你好!大家,我有一个问题,我需要在 xcode 中插入名为 Apple LiGothic Medium 的新字体,以便我可以在我的应用程序中使用它。
请有人帮助我
检查下面的SO帖子
我可以在 iPhone 应用程序中嵌入自定义字体吗?
博客文章:
在 iPhone 应用程序中使用自定义字体
在 iPhone 中加载自定义字体
如果您有一个您想要并且可以合法使用的字体版本,您可以这样做(从 iOS 版本 3.2 开始):
将字体文件添加到 Xcode 中的项目中(例如在参考资料中)。将键 UIAppFonts 添加到 info.plist 文件并使其成为数组类型。将字体文件名添加到数组中。例如,通过 [UIFont fontWithName:@"fontnamr" size:20] 来使用它。