Created
June 8, 2015 11:01
-
-
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/
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
// 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