Unrecognized font family on iOS simulator with React Native

后端 未结 14 1506
北海茫月
北海茫月 2020-12-14 05:55

I\'ve added Linux Biolinum fonts (http://www.dafont.com/linux-biolinum.font, LinBiolinum_R.ttf, LinBiolinum_RB.ttf) to my React Native project. Android version is OK. But on

14条回答
  •  半阙折子戏
    2020-12-14 06:26

    In my case, it worked fine in Android but not in iOS. The font file name was PlayfairDisplay-VariableFont_wght.ttf. But when I opened that file I saw the name as:

    .

    So, I changed the file name to PlayfairDisplay-Regular.ttf and it worked pretty well!

提交回复
热议问题