我已經開始在流星項目中使用glyphicons與twbs:boostrap軟件包。自從我開始使用他們,我一直在接受我的控制檯以下警告:流星:未能解碼下載的字體和OTS解析錯誤 - 無效版本標記
Failed to decode downloaded font: http://localhost:3000/fonts/glyphicons-halflings-regular.woff2
OTS parsing error: invalid version tag
Failed to decode downloaded font: http://localhost:3000/fonts/glyphicons-halflings-regular.woff
OTS parsing error: invalid version tag
Failed to decode downloaded font: http://localhost:3000/fonts/glyphicons-halflings-regular.ttf
OTS parsing error: invalid version tag
是什麼原因造成這一點,我怎麼能抑制這些警告或解決什麼問題? glyphicons工作得很好,但看到警告總是很痛苦。
如何在我的CSS文件中聲明它們以及我可以在哪裏下載glyphicons? –
只需將它們從bootstrap/fonts文件夾複製粘貼到public/fonts文件夾 –