0

I added custom font in xcode, target membership is checked but it does not seen in custom fonts menu.

target membership

location

info.plist

copy bundle resources

  • You should add the fonts to the macOS system as well. The Fonts folder should be blue https://stackoverflow.com/questions/34548771/swift-how-do-i-get-the-file-path-inside-a-folder/34548888 – Leo Dabus Feb 14 '20 at 17:04
  • Did you try this: https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app? – Lew Winczynski Feb 14 '20 at 18:20

3 Answers3

0

You should add your custom font to info.plist too. did you do that ? you should add a row with Fonts provided by application and enter your font names in that array

Mac3n
  • 4,189
  • 3
  • 16
  • 29
0

Project Name > Build Phases > Copy Bundle Resources.

You should see all font_name.ttf files listed. if you can't see that add your fonts files here. that should solve the problem.

enter image description here

Abhishek Dave
  • 326
  • 1
  • 14
0

I tried all the suggestions but it didn't work. Hardware reset resolved my issue

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140