Created
January 4, 2013 16:57
-
-
Save pkh/4454105 to your computer and use it in GitHub Desktop.
List all fonts available to an iOS app
This file contains hidden or 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
NSArray *familyNames = [UIFont familyNames]; | |
for ( NSString *familyName in familyNames ) { | |
printf( "Family: %s \n", [familyName UTF8String] ); | |
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName]; | |
for ( NSString *fontName in fontNames ) { | |
printf( "\tFont: %s \n", [fontName UTF8String] ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment