for(NSString *familyName in [UIFont familyNames]){
NSLog(@"Font FamilyName = %@",familyName); //*输出字体族科名字
for(NSString *fontName in [UIFont fontNamesForFamilyName:familyName]){
NSLog(@"\t%@",fontName); //*输出字体族科下字样名字
}
}
使用:
[UIFont fontWithName:@"Baskerville-Bold" size:18];
原文:http://www.cnblogs.com/limicheng/p/3916537.html