skip to Main Content

I followed nearly every tutorial and stack overflow questions and still couldn’t get my fonts to work.

  1. I downloaded Montserrat font from Google fonts
  2. I added the folder to my project with Copy items checked and targets checked
  3. I added the fonts I want under "Fonts provided by application" and added the names
  4. I still cannot find and use my font after printing the family names out

Any ideas what could go wrong?

enter image description here

enter image description here
enter image description here

2

Answers


  1. 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"

    Login or Signup to reply.
  2. Do you check target membership at each font?
    If you checked, init font with UIFont(name: "montserrat", size: size)!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search