Last active
June 16, 2017 07:42
-
-
Save christianascone/68acf9f4871dec96c91d70ef8d7d1fd0 to your computer and use it in GitHub Desktop.
Prints every font installed in the 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
// http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app | |
print("==== BEGIN INSTALLED FONT ====") | |
// Print every installed font | |
for family: String in UIFont.familyNames { | |
print("\(family)") | |
for names: String in UIFont.fontNames(forFamilyName: family) { | |
print("== \(names)") | |
} | |
} | |
print("==== END INSTALLED FONT ====") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment