Created
August 25, 2014 02:57
-
-
Save sam-w/ceb75a2a5ad078d4607f to your computer and use it in GitHub Desktop.
List available fonts (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
NSLog(@"*** Listing available fonts ***"); | |
for (NSString *familyName in [UIFont familyNames]) { | |
NSLog(@"Family name: %@", familyName); | |
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) { | |
NSLog(@"\t- Font name: %@", fontName); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment