Forked from iamjason/iOS Swift print all font names
Last active
July 24, 2017 15:28
-
-
Save omgbbqhaxx/79db9662571fb789fb2440d9e96e8181 to your computer and use it in GitHub Desktop.
Prints out all of the Fonts available. (Helpful for using custom fonts)
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 as [String] { | |
| print("\(familyName)") | |
| for fontName in UIFont.fontNames(forFamilyName: familyName) as [String] { | |
| print("\tFont: \(fontName)") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment