开发者

how can I import new font in xcode using during project [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Can开发者_如何转开发 I embed a custom font in an iPhone application?

hi! everyone, i have a problem I need to insert new font named Apple LiGothic Medium in xcode so that I can use it in my apps.

pls someone help me


Check the below SO post

Can I embed a custom font in an iPhone application?

Blog posts:

Using custom fonts in iPhone applications

Load custom font in iPhone


If you had a version of font that you wanted and legally could use, you can do (since iOS version 3.2):

Add the font file to the project in Xcode (in Resources for example). Add the key UIAppFonts to the info.plist file and make it an array type. Add the font file name to the array. Use it by doing, for example, [UIFont fontWithName:@"fontnamr" size:20].

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜