I followed nearly every tutorial and stack overflow questions and still couldn’t get my fonts to work.
- I downloaded Montserrat font from Google fonts
- I added the folder to my project with Copy items checked and targets checked
- I added the fonts I want under "Fonts provided by application" and added the names
- I still cannot find and use my font after printing the family names out
Any ideas what could go wrong?
2
Answers
You should use "PostScript name" that can be obtained by installing the font on the mac and obtaining information specifically about the font in question in "Font Book"
Do you check
target membership
at each font?If you checked, init font with
UIFont(name: "montserrat", size: size)!