UILabel font : bold and italic [duplicate]

谁说我不能喝 提交于 2019-12-03 03:19:01
Paras Joshi

try this code...

UIFont *yourFont = [UIFont fontWithName:@"Helvetica-BoldOblique" 
                                   size:[UIFont systemFontSize]];
lblTitle.font = yourFont;

you can use also another fontName for BoldItalik like.

Optima-BoldItalic,TimesNewRomanPS-BoldItalicMT,Baskerville-BoldItalic,HelveticaNeue-BoldItalic,etc...

Anoop Vaidya

There are several font that contains Bod+Italic in themselves you can use those fonts... One frequently for an example is

lblTitle.font = [UIFont fontWithName:@"Arial-BoldItalicMT" size:16.0f];

others are :

- TrebuchetMS-Bold

- Helvetica-BoldOblique

- This link will help you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!