0

I want to mention the font name,font size and typeface values in my application.

I mentioned the name and size.

But I can't do the typeface value.

So please tell me how to set that value.

SJS
  • 2,647
  • 1
  • 17
  • 34
Naresh Venkat
  • 219
  • 2
  • 4
  • 12
  • Check this post - http://stackoverflow.com/questions/1302833/uilabel-setting-font-typeface-programmatically-in-iphone – Saket Sep 19 '11 at 11:03
  • When you say you want to "mention it", do you mean you want to display the values somewhere in your application, or you want to be able to set the values in your code (rather than Interface Builder)? – Alex Sep 19 '11 at 11:03
  • AT THE TIME OF DECLARE THE LABEL.I WANT TO MENTION THE TYPEFACE VALUE FOR LABEL – Naresh Venkat Sep 19 '11 at 11:05

1 Answers1

1
UIFont *font = [UIFont fontWithName:@"Helvetica-Bold" size:12];

or for a label:

UILabel *label =[[UILabel alloc] init];
label.font = [UIFont fontNamesForFamilyName:@"Helvetica"];
zaph
  • 111,848
  • 21
  • 189
  • 228