FontAwesome fails to load fonts locally and in electron app

前端 未结 8 1468
野的像风
野的像风 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:21

    In my situation, Git was treating the file as a text file, and messing with its "line endings". This was corrupting the file.

    Adjusting the .gitconfig to recognize *.woff files as binary, then removing the file, and adding a new copy from https://github.com/FortAwesome/Font-Awesome/raw/v4.2.0/fonts/fontawesome-webfont.woff solved the issue for me.

提交回复
热议问题