Possible Duplicate:
How do I set bold and italic on UILabel of iPhone/iPad?
I am trying to make UILabel font bold and italic both using system font, but I cant use these both style at a time. so is it possible to make font bold and italic using system font? here is my code,
lblTitle.font = [UIFont italicSystemFontOfSize:[UIFont systemFontSize]];
or
lblTitle.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]];
I want my font Bold and Italic both. Can anyone help me? Thank you in advance.
Double Click on Bold to select it, and then right click on it to see more options. Select font > Bold from that option. It should do the task.
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...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With