I have an app where I am setting the font for a UILabel programmatically as below
[label setFont:[UIFont fontWithName:fontName size:[fontSize intValue]]];
wherein fontName
is a string type variable that hold font name such as "Helvetica"
and fontSize
will hold the size of the font. This works fine for me.
Now I want to make this text "Bold" how can I do that?
boldSystemFontOfSize
works for system font. How can I achieve the same for user defined fonts ?
Thanks.
MavenPro-Bold.ttf
but the font name I use to make it work has to beMavenProBold
. – The Muffin Man