Created
November 28, 2023 23:06
-
-
Save Nikoloutsos/04e337fd55fcb0857e543c5ded8c67ab to your computer and use it in GitHub Desktop.
Print all registered fonts (Debugging)
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
func printMyFonts() { | |
print("--------- Available Font names ----------") | |
for name in UIFont.familyNames() { | |
print(name) | |
if let nameString = name as? String { | |
print(UIFont.fontNamesForFamilyName(nameString)) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment