Skip to content

Instantly share code, notes, and snippets.

@christianascone
Last active June 16, 2017 07:42
Show Gist options
  • Save christianascone/68acf9f4871dec96c91d70ef8d7d1fd0 to your computer and use it in GitHub Desktop.
Save christianascone/68acf9f4871dec96c91d70ef8d7d1fd0 to your computer and use it in GitHub Desktop.
Prints every font installed in the app
// 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