Custom Font in ios not working

前端 未结 17 1919
北海茫月
北海茫月 2020-12-07 22:53

I want to use HelveticaNeue-UltraLight in my ios application. I\'m adding the font file as a resource to my project and adding the \"Fonts provided by application\" key in t

17条回答
  •  隐瞒了意图╮
    2020-12-07 23:09

    1. Drag your font files (.ttf or .otf) into project's bundle.
    2. Then select all those fonts > on your xcode's right panel check the Target membership is enabled, if not enable it.
    3. Select project from the navigator > select Build phases > under Copy Bundle Resources verify all your fonts are listed. If not, add one by one using + icon.
    4. Info.plist > select Fonts provided by application > add your fonts one by one as Helvetica-Bold.ttf.

提交回复
热议问题