FontAwesome fails to load fonts locally and in electron app

前端 未结 8 1464
野的像风
野的像风 2020-12-14 15:09

I have downloaded FontAwesome using npm and then copied the css-file and the fonts into the right folders in the root-diretory of my electron-application using grunts copy t

8条回答
  •  鱼传尺愫
    2020-12-14 15:31

    I'm sure this is solved, but this worked for me, so... I'm gonna leave this here:

    I just had the same issue with a font I had used before. Turned out this was caused by a problem with FTP. The file was uploaded as text (ASCII) instead of binary, which corrupted the file. I simply re-uploaded the font files, and then it all worked.

提交回复
热议问题