首页 > 代码库 > iOS 打印系统字体

iOS 打印系统字体

1     NSArray * array = [UIFont familyNames];
2     
3     for( NSString *familyName in array ){
4         printf( "Family: %s \n", [familyName UTF8String] );
5         NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];
6         for( NSString *fontName in fontNames ){
7             printf( "\tFont: %s \n", [fontName UTF8String] );
8         }
9     }

 

iOS 打印系统字体