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.
我正在尝试在我的应用程序中使用 FUTURA-Bold,但它无法正常工作。我在我的系统中安装了字体,在我的代码资源中复制了字体。使用字体名称编辑 info.plist。并选择相同的字体,但它只是给我简单的字体。
任何想法 ???
谢谢,
1)您是否创建了UIAppFonts数组类型的 plist 条目,将您的(ttf)文件名作为成员值?
UIAppFonts
2)您使用的是实际的内部字体名称吗?这可能与 ttf 文件名不同。利用
NSLog(@"fonts: %@",[UIFont familyNames]);
获取字体列表。查找您的字体并准确使用该名称。