G.Rizvan
G.Rizvan

Reputation: 39

Font BebasNeue not working for iOS 11

  1. Copy the .ttf files to the project.
  2. Confirm the .ttf files have set the project as target.
  3. Added the .ttf files in 'Fonts provided by application' in plist.
  4. In Build Phases, the .ttf files are in 'Copy Bundle Resources'.
  5. Install the font on my Mac.
  6. Try to print out all fonts available but I can't see my custom font.
  7. I tried to install a font in the code, ios 10 and below works, but ios 11 does not.

Fonts provided by application' in plist

Upvotes: 3

Views: 1910

Answers (2)

kgaidis
kgaidis

Reputation: 15619

The following solution worked for me: https://stackoverflow.com/a/41898069/826435

Once I renamed the "full name" metadata of the font (it's not the same as the file name), it worked. In my case, I just renamed it to "BebasFixNeue." Crazy, but works wonders.

I used a program called FontForge to change the font name. It is free to download.

Upvotes: 0

Sunil M.
Sunil M.

Reputation: 564

After doing some workaround found this:

Imported your custom font -> StoryBoard -> Attributes Inspector Label -> Select Text type = Attribute -> Select your custom fonts.

Please refer below sample image.

enter image description here

Upvotes: 0

Related Questions