sunflowerdeath / webfonts-generator

Generator of webfonts from svg icons
The Unlicense
271 stars 152 forks source link

Works for all IE but IE9 #31

Open jeerbl opened 7 years ago

jeerbl commented 7 years ago

Hi there,

I noticed the CSS generated by webfonts-generator does not include a fix for IE9 compat mode. As suggested in this SO answer, not only the ?iefix is needed but also a src only having the EOT font URL:

@font-face {
    font-family: 'MyWebFont';
    src: url('webfont.eot'); /* IE9 Compat Modes */
    src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('webfont.woff') format('woff'), /* Modern Browsers */
         url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
         url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

Could you test it out? Or tell me a version I can use myself to test it ;)

Thanks! Jerome

jpstevens commented 7 years ago

👍

jeerbl commented 6 years ago

Hi!

Sorry to ask again but where are we on this? Doesn't work on IE9 because of this.

Thanks Jerome