Created
March 27, 2014 22:37
-
-
Save wanghailei/9820614 to your computer and use it in GitHub Desktop.
To list all the installed fonts on iOS, for verifying your customized fonts are installed.
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
// List the fonts name on the workstation to find out the real customized name. | |
for ( NSString * fontFamily in [ UIFont familyNames ] ) { | |
NSLog( @"%@", fontFamily ); | |
for ( NSString * fontName in [UIFont fontNamesForFamilyName: fontFamily ] ) { | |
NSLog( @" %@", fontName ); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment