- Copy the .ttf files to the project.
- Confirm the .ttf files have set the project as target.
- Added the .ttf files in 'Fonts provided by application' in plist.
- In Build Phases, the .ttf files are in 'Copy Bundle Resources'.
- Install the font on my Mac.
- Try to print out all fonts available but I can't see my custom font.
- I tried to install a font in the code, ios 10 and below works, but ios 11 does not.
3
votes
2 Answers
0
votes
0
votes
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.
iOS11
stackoverflow.com/questions/40168344/… – Joe