iOS 字体斜体
- 作者: 球迷迷
- 来源: 51数据库
- 2022-08-17
//里面的参数自己修改吧
CGAffineTransform matrix = CGAffineTransformMake(1, 0, tanf(15 * (CGFloat)M_PI / 180), 1, 0, 0);
UIFontDescriptor *desc = [ UIFontDescriptor fontDescriptorWithName :[ UIFont boldSystemFontOfSize:20 ]. fontName matrix :matrix];
UIFont *font = [ UIFont fontWithDescriptor :desc size :20];
推荐阅读
