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 }
时间: 2024-10-08 12:07:53