zavoloklom / material-design-iconic-font

Material Design Iconic Font and CSS toolkit
http://zavoloklom.github.io/material-design-iconic-font/
Creative Commons Attribution Share Alike 4.0 International
1.42k stars 197 forks source link

OTS Parsing Error #75

Open tanmaydesai89 opened 8 years ago

tanmaydesai89 commented 8 years ago

I am receiving following error:

Failed to decode downloaded font: http://*.com/fonts/Material-Design-Iconic-Font.woff?v=2.1.0 dashboard:1 OTS parsing error: invalid version tag

Please advise.

zavoloklom commented 8 years ago

@tanmaydesai89, Current version is 2.2.0, maybe you should try that number.

tanmaydesai89 commented 8 years ago

@zavoloklom I tried that an hour back. No luck.

@font-face { font-family: Material-Design-Iconic-Font; src: url(../fonts/Material-Design-Iconic-Font.woff2?v=2.2.0) format('woff2'), url(../fonts/Material-Design-Iconic-Font.woff?v=2.2.0) format('woff'), url(../fonts/Material-Design-Iconic-Font.ttf?v=2.2.0) format('truetype') }

This is vendor.css that grunt is generating.

zavoloklom commented 8 years ago

@tanmaydesai89, Try to remove version ../fonts/Material-Design-Iconic-Font.woff2. P.S. I don't know what you are doing. If you can describe your situation in more detail, than I can try to give more useful advice.

thandaanda commented 8 years ago

So, it turns out that when this fonts are loaded on the browser, content-type is changed to "text/html", any reason why?

thandaanda commented 8 years ago

Finally found the solution, you need to move fonts to public/fonts directory, you can do it by writing following code in copy/dist task of Grunt.

{
                        expand: true,
                        cwd: '<%= yeoman.client %>/bower_components/material-design-iconic-font/dist/fonts',
                        src: ['*.*'],
                        dest: '<%= yeoman.dist %>/public/fonts'
                }