Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4

后端 未结 25 1474
长发绾君心
长发绾君心 2020-12-04 11:46

I am doing assets pre-compile, and running the application in production mode. After compilation when I load the my index page I got followings warnings in the chrome consol

25条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 12:25

    Go to the address below on GitHub and download each of the FontAwesome files.

    https://github.com/FortAwesome/font-awesome-sass/tree/master/assets/fonts/font-awesome

    ...but instead of right-clicking and saving the link as, click on each of the files and use the 'Download' button to save them.

    I found that saving the link as downloaded an HTML page and not the FontAwesome file binary itself.

    Once I had all of the binaries it worked for me.

提交回复
热议问题