遍历Xcode系统自带的字体

-(void)typeface{

_fontArray = [[NSMutableArray alloc] initWithCapacity:242];

for (NSString * familyName in [UIFont familyNames]) {

NSLog(@"Font FamilyName = %@",familyName); //*输出字体族科名字

for (NSString * fontName in [UIFont fontNamesForFamilyName:familyName]) {

NSLog(@"\t%@",fontName);

[_fontArray addObject:fontName];

}

}

}

你可能感兴趣的:(遍历Xcode系统自带的字体)