iOS 获取全部字体的Fontfamily和FontName

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]);  
    }  
}  

你可能感兴趣的:(iOS 获取全部字体的Fontfamily和FontName)