Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIFont Helvetica-Regular font issue

I need to create UIFont with Helvetica-Regular, I use this code:

UIFont *font = [UIFont fontWithName:@"Helvetica-Regular" size:size];

But font is nill. How to do that correctly?

like image 835
Paul T. Avatar asked Dec 30 '25 17:12

Paul T.


1 Answers

Well you can view the list of fonts supported by iOS here . The font Helvetica Regular does not feature in this list. If you want to go for this font name specifically then you would have to add this as a custom font. Or you could simply use the Helvetica font name. To go for the custom fonts you could browse through these links :-

How to use custom fonts in iPhone SDK?

How to include and use new fonts in iPhone SDK?

like image 140
IronManGill Avatar answered Jan 01 '26 06:01

IronManGill



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!