Last active
January 3, 2017 20:34
-
-
Save sauvikatinnofied/3ef314d7c2141b72a4268c198a2a0281 to your computer and use it in GitHub Desktop.
MediumBlogPost_FontHandling_Gist_1
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
class Utility { | |
/// Logs all available fonts from iOS SDK and installed custom font | |
class func logAllAvailableFonts() { | |
for family in UIFont.familyNames { | |
print("\(family)") | |
for name in UIFont.fontNames(forFamilyName: family) { | |
print(" \(name)") | |
} | |
} | |
} | |
} | |
// Roboto | |
// Roboto-Thin | |
// Roboto-Italic | |
// Roboto-BlackItalic | |
// Roboto-Light | |
// Roboto-BoldItalic | |
// Roboto-Black | |
// Roboto-LightItalic | |
// Roboto-ThinItalic | |
// Roboto-Bold | |
// Roboto-Regular | |
// Roboto-Medium | |
// Roboto-MediumItalic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment