Skip to content

Instantly share code, notes, and snippets.

@fahied
Created March 23, 2016 13:48
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 fahied/6806bc99e9dc1e99bf99 to your computer and use it in GitHub Desktop.
Save fahied/6806bc99e9dc1e99bf99 to your computer and use it in GitHub Desktop.
How to find available fonts in iOS app
Following is code for find all fonts from the system:
for(NSString *fontfamilyname in [UIFont familyNames])
{
NSLog(@"Family:'%@'",fontfamilyname);
for(NSString *fontName in [UIFont fontNamesForFamilyName:fontfamilyname])
{
NSLog(@"\tfont:'%@'",fontName);
}
NSLog(@"~~~~~~~~");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment