标签:ios中文字体自定义 uilabel ios字体自定义
UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(0, 400, 250, 50)];
lab.backgroundColor = [UIColor orangeColor];
lab.text = @"水电费水电费";
[self.view addSubview:lab];
//汉字字体倾斜
NSInteger number = 55;//倾斜值
CGAffineTransform matrix = CGAffineTransformMake(1, 0, tanf(number * (CGFloat)M_PI / 180), 1, 0, 0);
UIFontDescriptor *desc = [UIFontDescriptor fontDescriptorWithName:[UIFont systemFontOfSize:17].fontName matrix:matrix];
UIFont *font = [UIFont fontWithDescriptor:desc size:33];
lab.font = font;
标签:ios中文字体自定义 uilabel ios字体自定义
原文地址:http://blog.csdn.net/u012460084/article/details/45972605