![]() ![]() Interface builder in xCode6 gives you the correct font name that you can copy-paste into the code below. Modify your code to account for this but programmatically setting font for iOS7 and selecting it in xCode6 interface builder. In iOS8 you add your fonts directly to the project and they are visible in the interface builder. After that you only need to use that font by: UIFont *customFont = Search for your font in printed results, for example, I would search for "Josefin" and I would see that actual font name is "JosefinSansStd-Light". You will do that with this little piece of code: NSArray *fontFamilies = įor (int i = 0 i < i++) If you don't see your font in there, drag it from Supporting Files.įinally, you would like to list all your fonts when the app starts just to see useable name for your font. Do that by selecting your Target, then Build Phases, then Copy Bundle Resources. Make sure that the font you imported to your app is being packed into app itself.For example: "JosefinSansStd-Light_0.otf" Add "Fonts provided by application" key into your plist and in Item 0 copy the exact filename of the font you copied to your Supporting files WITH extension. ![]() First of all I'm assuming that SpriteKit doesn't make any difference. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |