Skip to content

Instantly share code, notes, and snippets.

@evgeniyd
Created June 8, 2015 11:01
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 evgeniyd/05427b2b6444e48cbaa4 to your computer and use it in GitHub Desktop.
Save evgeniyd/05427b2b6444e48cbaa4 to your computer and use it in GitHub Desktop.
Printing all the font families and names available at the runtime of an application. Helpful for troubleshooting font issues. Reference: http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
// copy-paste at the begining of application:didFinishLaunchingWithOptions:
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment