I have an UITextView with attributed text in which I want to select the new 'San Francisco' font for certain parts of the text. However, I can't find the font from Xcode's font picker.
Is there a way to select San Francisco or select the system's default font (as as I normally would if using plain text) using attributed text in Interface Builder?
Helvetica Yet it was the primary source of inspiration for Apple when creating San Francisco.
The newly created Apple's San Francisco font is comfortable for human eyes as per research. Normally Apple's font can not be used on any webpage through CSS. These kind of fonts are in-build in Apple's product but the new San Francisco font can be used in any web content.
You need to download the font, then install/use it according to the guidelines:
https://developer.apple.com/fonts/
WWDC video on the subject:
https://developer.apple.com/videos/wwdc/2015/?id=804
There's also a github repo that contains the fonts and alternative instructions (in case you don't happen to have your Apple developer account handy):
https://github.com/supermarin/YosemiteSanFranciscoFont
*The font is still in a beta stage it looks like; use in production code at your own risk.
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