I have used a custom font in my previous app.
The file name was \"ProximaNova-Regular.otf\" and to load the font I just used...
[UIFont fontWithName:
Follow these four easy steps to add and use a new font in your iOS app:
UIAppFonts array (plain text for this one is 'Fonts provided by application')//Swift
for family: String in UIFont.familyNames {
print("\(family)")
for names: String in UIFont.fontNames(forFamilyName: family) {
print("== \(names)")
}
}
//Objective-c
for(NSString *fontfamilyname in [UIFont familyNames]) { NSLog(@"family:'%@'",fontfamilyname); for(NSString *fontName in [UIFont fontNamesForFamilyName:fontfamilyname]) { NSLog(@"\tfont:'%@'",fontName); } NSLog(@"-------------"); }
UIFont *myNewFont = [UIFont fontWithName:@"font_name_from_debug_output" size:20] and you should be in business!