In my app I am using custom font which working perfectly fine. But I need the button text to be bold. I googled it there is only for System fonts.
Code
button.titleLabel.font = [UIFont fontWithName:@"YanaR" size:20.0];
Thanks for your help guys.
After fontWithName you have to use boldSystemFontOfSize:
[button.titleLabel setFont:[UIFont fontWithName:@"Arial" size:13.f]];
[button.titleLabel setFont:[UIFont boldSystemFontOfSize:13.f]];
That's because fonts don't magically make themselves bold. Bold fonts are designed separately. I'm afraid there is no answer to this question, apart from thickening the stroke of the lines, which would probably be in breach of your font agreement.
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