This question already has an answer here:
I Want to implement custom font in my app. So i have added that in my Project Source code. I don't want to set that programatically. Is this possible that I can do this with setting properties in xib?
This question already has an answer here:
I Want to implement custom font in my app. So i have added that in my Project Source code. I don't want to set that programatically. Is this possible that I can do this with setting properties in xib?
Step 1:
Copy the font file to your resource files. Make sure it is added to Copy Bundle Resources in your Build Phases settings.
Step 2:
In your Info.plist just configure this like below this screen
Step 3:
Access and use it with the following code:
Add your custom font into your project , i.e. Dragged the font file(
CALIBRIZ_0.TTF
) into XCode project.Edit Info.plist: Add a new entry with the key "Fonts provided by application".
For each of your files, add the file name to this array
Opened the font in font book(double click on your font in finder) to see what the real filename is and I see this:
Now set font to your label
Follow this to get more
I think you had not searched well.
NOTE:- Make sure the fonts are in your Copy Bundle Resources.
For example:- If you want to use "
Nexa Light
" font in your app, then add "Nexa Light.otf" into your project and call in this way.Use font name from .ttf file
and you can also find from this link
after add this font name with it's extension like (OpenScan.ttf) in to
.plist
fileAfter add this font to .plist file, you can use it by
And for more information read my Answer Adding custom fonts to iOS app finding their real names.