Created
November 22, 2017 20:59
-
-
Save cball/2bd0d1b659d81422c5a0675cc4dbe825 to your computer and use it in GitHub Desktop.
Snippet to output all font names on launch 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
// add below this line: | |
// - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
// { | |
// NSURL *jsCodeLocation; | |
for (NSString* family in [UIFont familyNames]) | |
{ | |
NSLog(@"%@", family); | |
for (NSString* name in [UIFont fontNamesForFamilyName: family]) | |
{ | |
NSLog(@" %@", name); | |
} | |
} | |
// on launching the app, XCode logs should show all fonts that have been properly linked. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment