打印iphone支持的所有字体

//打印iphone支持的所有字体
NSArray *familyNames = [UIFont familyNames];
for(NSString *familyName in familyNames)
{
    NSLog(@"%@", familyName);
    NSArray *fontNames = [UIFont    fontNamesForFamilyName:familyName];
    for(NSString *fontName in fontNames)
    {
        NSLog(@"\t%@", fontName);
    }
}

 

posted on 2017-06-28 15:34  靖儿  阅读(275)  评论(0编辑  收藏  举报

导航