iOS输出字体信息

1
2
3
4
5
6
7
for(NSString *familyName in [UIFont familyNames]){
NSLog(@"Font FamilyName = %@",familyName); //*输出字体族科名字

for(NSString *fontName in [UIFont fontNamesForFamilyName:familyName]){
NSLog(@"\t%@",fontName); //*输出字体族科下字样名字
}
}