Last active
November 24, 2015 17:05
-
-
Save abbeyjackson/e74b9878587320b0d82e to your computer and use it in GitHub Desktop.
From http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/ Print out all fonts from the app in consol
This file contains hidden or 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
Objective-C: | |
for (NSString* family in [UIFont familyNames]) | |
{ | |
NSLog(@"%@", family); | |
for (NSString* name in [UIFont fontNamesForFamilyName: family]) | |
{ | |
NSLog(@" %@", name); | |
} | |
} |
This file contains hidden or 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
Swift: | |
for family: String in UIFont.familyNames() | |
{ | |
print("\(family)") | |
for names: String in UIFont.fontNamesForFamilyName(family) | |
{ | |
print("== \(names)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment