UIFont

UIFont代表字体,常见创建方法有以下几个:
+ (UIFont *)systemFontOfSize:(CGFloat)fontSize; 系统默认字体
+ (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize; 粗体
+ (UIFont *)italicSystemFontOfSize:(CGFloat)fontSize; 斜体

时间: 2024-12-13 23:43:13

UIFont的相关文章

iOS字体 UIFont 字体名字大全

打印所有的字体 NSArray *familyNames = [UIFont familyNames];//所有的家族名称 for(NSString *familyName in familyNames) { NSLog(@"familyName:%@", familyName);//打印每一个家族名称 NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];//每一个家族名称里的字体 for(NSString *

iOS UIFont 字体名字大全

Font Family: American TypewriterFont: AmericanTypewriterFont: AmericanTypewriter-Bold Font Family: AppleGothicFont: AppleGothic Font Family: ArialFont: ArialMTFont: Arial-BoldMTFont: Arial-BoldItalicMTFont: Arial-ItalicMT Font Family: Arial Rounded M

UIScreen,UIFont,UIColor,UIView,UIButton等总结

6.1 UIScreen // 屏幕的宽度 CGFloat screenW = [UIScreen mainScreen].bounds.size.width; 6.2 UIFont + (UIFont *)systemFontOfSize:(CGFloat)fontSize;   系统默认字体 + (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize;  粗体 + (UIFont *)italicSystemFontOfSize:(CGFloat)f

IOS UILabe及UIFont用法总结

初始化一个UILabel对象,并初始化大小 UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; 设置显示的文字 label.text=@"123"; 和字体相关的一个类,字号大小默认17 @property(nonatomic,retain) UIFont*font; //7.0之后可用 设置字体风格 // NSString *const UIFontTextStyleHead

UIFont - 设置字体

abel.font = [UIFont fontWithName:@"Arial-BoldItalicMT" size:24]; 字体名如下: Font Family: American TypewriterFont: AmericanTypewriterFont: AmericanTypewriter-Bold Font Family: AppleGothicFont: AppleGothic Font Family: ArialFont: ArialMTFont: Arial-Bo

iOS 开发笔记-UILable/UIFont/UIButton常见设置

UILabel的常见设置 @property(nonatomic,copy) NSString *text; 显示的文字 @property(nonatomic,retain) UIFont *font; 字体 @property(nonatomic,retain) UIColor *textColor; 文字颜色 @property(nonatomic) NSTextAlignment textAlignment; 对齐模式(比如左对齐.居中对齐.右对齐) UIFont的常见设置 + (UIF

iOS中UIKit——UIFont得到iOS设备上的系统字体

for (NSString *fontFamily  in [UIFont familyNames]) { NSLog(@"字体家族是:%@",fontFamily); for(NSString *fontName in [UIFont fontNamesForFamilyName:fontFamily]) { NSLog(@"\t%@",fontName); } }

UIFont 字体样式 [UIFont fontWithName~];

设置字体样式代码:[UIFont fontWithName:@"Arial-BoldMT" size:15] 下边一一列举: 一:Font Family: American Typewriter Font: AmericanTypewriter,如右图   Font: AmericanTypewriter-Bold     二:Font Family: AppleGothic Font: AppleGothic   三:Font Family: Arial Font: ArialMT

UIFont的常用字体

+ (UIFont *)systemFontOfSize:(CGFloat)fontSize;   系统默认字体 + (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize;  粗体 + (UIFont *)italicSystemFontOfSize:(CGFloat)fontSize;  斜体