Added custom font as tutorial suggest here.



But still neither from Stroyboard nor from code I can set font of an UILabel. What am I missing?
Please read carefully this article.
Step 5: Find the name of the font
This is a common pitfall for many people trying to include custom fonts into their iOS app. This was something that eluded me before as well and it’s the fact that when you specify which font you want to use, you’re not specifying the file name but rather, the font name. The tricky part is that the font name may not be what you expect. It could be very different than any of the visible font names that you can see.
So in order to easily find the name of the font that you want to use, you can output something to the console window and see for yourself.
You can print names for all fonts available for developer with this code:
for family in UIFont.familyNames {
print("\(family)")
for names in UIFont.fontNames(forFamilyName: family){
print("== \(names)")
}
}
It will produce output like this:

Find yours and use it with:
label.font = UIFont(name: "SFProText-Heavy", size: 14.0)
To add custom font to interface builder open Font Book from Spotlight Search and drag and drop your font there


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