font-face doesn't appear to be working in IE8?

Amanda Kitson picture Amanda Kitson · Mar 1, 2012 · Viewed 17.6k times · Source

I have the following lines in my CSS.

@font-face { font-family: Keffeesatz; src: url(/Styles/YanoneKaffeesatz-Light.otf) format("opentype") }
@font-face { font-family: KeffeesatzBold; src: url(/Styles/YanoneKaffeesatz-Bold.otf) format("opentype") }

In IE9, these show up. In IE8, it's using the fallback font, Arial. How do I get this to work in IE8?

Answer

BoltClock picture BoltClock · Mar 1, 2012

You need to supply an EOT version of your font in order for older versions of IE to embed it. They won't recognize any other format, which is why you're observing the fallback to Arial.

Take your font to the Font Squirrel @font-face Generator and it'll prepare everything for you, including a new set of CSS @font-face rules to use over your existing ones.