Search code examples
meteortwitter-bootstrap-3fontsglyphicons

Meteor: failed to decode downloaded font and OTS parsing error - invalid version tag


I've started using glyphicons in my meteor project with the twbs:boostrap package. Ever since I started using them I've been receiving the following warnings in my console:

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

What is causing this and how can I suppress these warnings or solve the problem? The glyphicons work perfectly fine, it's just a pain to see the warnings all the time though.


Solution

  • This means that the package you are using to import glyphicons has a bug in it and does not properly declare the font files' locations or does not have the font files properly added to the package itself.

    Check the package maintainers issue tracker and in the meantime, download the glyphicons to your public directory and declare them in your own CSS file.