Surprisingly I can't seem to find another question on this... sorry if I'm missing something obvious.
I'm trying to use Helvetica Neue Light programatically in my iPhone app. It seems that the system doesn't have this built in, which seems strange.
Is this the case? Does this particular font need to be added manually?
Ideally I'd like to edit this line of code to accomplish this:
myLabel.font = [UIFont fontWithName:@"HelveticaNeue" size: 32];
One of the most popular fonts in the world, Helvetica Neue (pronounced: noy-uh), is also a huge troublemaker. It was created in Switzerland in the 50s and adopted by Apple's design gurus back in 2013 for the iPhone. Apple's blessing only increased its popularity.
It is essentially the same Helvetica font that was included in the original Adobe PostScript printers.
Helvetica Neue is not part of the Adobe Fonts service. You don't install typefaces into InDesign. Instead you install them onto your computer and your applications use them.
The font name you used is incorrect, try:
Objective-C
myLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:32.0f];
Swift
myLabel.font = UIFont(name: "HelveticaNeue-Light", size: 32.0)
On iOS Fonts you will find the full list of fonts and their names.
Here is a link where all the supported fonts are available for iOS.
HelveticaNeue is supported in iOS and its Keyword is "HelveticaNeue"
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