custom fonts, eot, not working

user431619 picture user431619 · May 11, 2011 · Viewed 9.3k times · Source

I cant get my custom fonts to work in IE7 and IE8:

http://i-creative.dk/iJob/

It works fine in IE9, Firefox and Chrome...

For Firefox and Chrome the fonts are in TTF And for IE, it's in EOT

However, it only works in IE9 :(

Answer

Jonathan Miller picture Jonathan Miller · May 11, 2011

Try this css formatting instead:

@font-face {
    font-family: 'fontName';
    src: url('/path/to/font.eot?') format('eot'), 
         url('/path/to/font.otf') format('otf'), 
         url('/path/to/font.ttf') format('truetype');
}

This is what I use (sans the otf, woff & svg instead). and I have never had any of the IE's not render the font.