-
-
Save extratone/94972516d5f552bc9b00b8d2a4b39905 to your computer and use it in GitHub Desktop.
Get fonts family and font names list on iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// List all fonts on iPhone | |
for (NSString* family in [UIFont familyNames]) { | |
NSLog(@"Family name: %@", family); | |
for (NSString* name in [UIFont fontNamesForFamilyName: family]) { | |
NSLog(@" Font name: %@", name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment