Skip to content

Instantly share code, notes, and snippets.

@sauvikatinnofied
Last active January 3, 2017 20:34
Show Gist options
  • Save sauvikatinnofied/3ef314d7c2141b72a4268c198a2a0281 to your computer and use it in GitHub Desktop.
Save sauvikatinnofied/3ef314d7c2141b72a4268c198a2a0281 to your computer and use it in GitHub Desktop.
MediumBlogPost_FontHandling_Gist_1
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