- NSArray* familys = [UIFont familyNames];
- for (int i = 0; i<[familys count]; i++) {
- NSString* family = [familys objectAtIndex:i];
- NSLog(@"\r\n\r\nFontfamily:%@\r\n=====",family);
- NSArray* fonts = [UIFont fontNamesForFamilyName:family];
- for (int j = 0; j<[fonts count]; j++) {
- NSLog(@"%@",[fonts objectAtIndex:j]);
- }
- }
- 转自 http://tiny4.org/blog/2010/06/fontfamily-name-fontname-ipad-iphone/
Objective-C获取 iPhone全部字体的Fontfamily和FontName
最新推荐文章于 2021-06-10 03:54:54 发布