Skip to content

Instantly share code, notes, and snippets.

@r3econ
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r3econ/9412156 to your computer and use it in GitHub Desktop.
Save r3econ/9412156 to your computer and use it in GitHub Desktop.
UIFont category for logging all available fonts in iOS project.
@interface UIFont (FamilyNames)
+ (void)logFontNames;
@end
@implementation UIFont (FamilyNames)
+ (void)logFontNames
{
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment