Last active
August 29, 2015 14:18
-
-
Save EvgenyMorozov/f6c95dc173edde683323 to your computer and use it in GitHub Desktop.
Log all available fonts 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
NSMutableString *result = [NSMutableString string]; | |
for (NSString* familyName in [UIFont familyNames]) { | |
[result appendString:[NSString stringWithFormat:@"\nFontFamily:%@ \nFonts:", familyName]]; | |
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName]; | |
[result appendString:[NSString stringWithFormat:@"\n%@", fontNames]]; | |
} | |
NSLog(@"%@", result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment