简体   繁体   English

如何将字体永久添加到Xcode

[英]How to permanently add font to Xcode

I have some nice fonts that I like to use in my iOS applications. 我有一些不错的字体,喜欢在我的iOS应用程序中使用。 However, it is slightly annoying to add the font to Xcode every time. 但是,每次都将字体添加到Xcode有点烦人。 Is there a way I can keep add a font permanently to a project so it will stay in there forever? 有没有一种方法可以让我永久性地将字体添加到项目中,从而使其永远存在于项目中? Please let me know if I am not being specific enough. 如果我不够具体,请告诉我。 Thanks! 谢谢!

Unfortunately only standard iOS fonts are "permanently" in Xcode. 不幸的是,只有标准的iOS字体在Xcode中是“永久”的。 Other fonts have to be added in manually when you want to use it in a specific project. 要在特定项目中使用其他字体,必须手动添加其他字体。

This is because when you add the font it is included in your bundle when uploaded to the app store vs. the system fonts already being on the iOS system. 这是因为,当您添加字体时,与上载到iOS系统中的系统字体相比,上载到应用商店时它包含在捆绑软件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM