How can I get the list of font names that can be used with SpriteKit
's labelNodeWithFontNamed
method?
There is a method of SKLabelNode
where I can specify the font name but I would like to know which fonts are supported and what are their names.
Example:
[SKLabelNode labelNodeWithFontNamed:@"Chalkduster"];
Refer to iosfonts.com They show you how the actual font looks like, it's descriptive name and its code name as well as the iOS version a specific font was added.
Use only the code names of each font, like AmericanTypewriter-CondensedLight
.
Try to get your fonts with names by this code:
for (NSString* family in [UIFont familyNames]) {
NSLog(@"%@",family);
for (NSString* name in [UIFont fontNamesForFamilyName:family]) {
NSLog(@"--- %@",name);
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With