Skip to content

Instantly share code, notes, and snippets.

@cball
Created November 22, 2017 20:59
Show Gist options
  • Save cball/2bd0d1b659d81422c5a0675cc4dbe825 to your computer and use it in GitHub Desktop.
Save cball/2bd0d1b659d81422c5a0675cc4dbe825 to your computer and use it in GitHub Desktop.
Snippet to output all font names on launch on iOS
// 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