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

后端 未结 25 1468
长发绾君心
长发绾君心 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:10

    I've had this problem twice already with icon fonts generated by icomoon. In both cases one of the icons was using the "space character" (20)

    It seems that using the space character (code 20) is triggering this issue. After I changed the code to something other than 20 (space), the font worked properly in Chrome.

提交回复
热议问题