Last active
October 19, 2017 16:59
-
-
Save vnavarro/b95b72e4e49bd61752e18dd4238c76cc to your computer and use it in GitHub Desktop.
Swift code for printing all registered fonts on iOS project
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
for familyName in UIFont.familyNames { | |
print("------------------------------") | |
print("Font Family Name = [\(familyName)]") | |
let names = UIFont.fontNames(forFamilyName: familyName as! String) | |
print("Font Names = [\(names)]") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment