2024年8月15日发(作者:)
iOS UIFont 字体名称大全,图解及使用方法
2016/11/15 4167 如何在项目中使用方法:
=[UIFont fontWithName:@”AmericanTypewriter” size:14.0];//设置字体
样式 如何获取字体名称:
NSArray *familyNames = [UIFont familyNames]; for( NSString *familyName in
familyNames ){ NSLog(@”Family: %@”,familyName); NSArray *fontNames = [UIFont
fontNamesForFamilyName:familyName]; for( NSString *fontName in fontNames ){
NSLog(@”Font: %@”,fontName); } } 具体字体如下: Font Family: American
Typewriter Font: AmericanTypewriter Font: AmericanTypewriter-Bold
Font Family: AppleGothic Font: AppleGothic
Font Family: Arial Font: ArialMT Font: Arial-BoldMT Font: Arial-BoldItalicMT Font:
Arial-ItalicMT
Font Family: Arial Rounded MT Bold Font: ArialRoundedMTBold
Font Family: Arial Unicode MS Font: ArialUnicodeMS
Font Family: Courier Font: Courier Font: Courier-BoldOblique Font: Courier-Oblique
Font: Courier-Bold
Font Family: Courier New Font: CourierNewPS-BoldMT Font: CourierNewPS-
ItalicMT Font: CourierNewPS-BoldItalicMT Font: CourierNewPSMT
Font Family: DB LCD Temp Font: DBLCDTempBlack
Font Family: Georgia Font: Georgia-Bold Font: Georgia Font: Georgia-BoldItalic Font:
Georgia-Italic
Font Family: Helvetica Font: Helvetica-Oblique Font: Helvetica-BoldOblique Font:
Helvetica Font: Helvetica-Bold
Font Family: Helvetica Neue Font: HelveticaNeue Font: HelveticaNeue-Bold
Font Family: Hiragino Kaku Gothic ** W3 Font: HiraKakuProN-W3
Font Family: Hiragino Kaku Gothic ** W6 Font: HiraKakuProN-W6
发布评论