Custom Font in ios not working

前端 未结 17 1849
北海茫月
北海茫月 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:18

    It's an old question but I'd like to emphasize that we must write font file name WITH EXTENSION into info.plist. It was particularly my mistake: I missed extensions. But the very interesting thing that iOS successfully loaded three fonts even when the extensions were missed. Once I've added extensions all 12 fonts were loaded.

    Good article: https://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/

提交回复
热议问题