Dieter Gijsen
Dieter Gijsen

Reputation: 3

Font-face in IE

I know that these questions are very often asked, but I wanna know what is wrong with my code.

When I try to load the font, IE wont display the font.

Here is my code:

@font-face {
    font-family: CalistoMTItalic;
    src: url('../fonts/CALISTI.oet'); 
    src: url('../fonts/CALISTI.oet?#iefix') format('embedded-opentype'),
    url('../fonts/CALISTI.TTF') format('truetype');
}

Does anybody know the mistake?

Upvotes: 0

Views: 77

Answers (2)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201738

The mistakes include:

  • mistyping file name extension .eot as .oet
  • using just EOT and TTF formats
  • not contacting Microsoft regarding legal use of their font

Upvotes: 1

mayabelle
mayabelle

Reputation: 10014

The correct extension is eot, not oet.

Also, make sure the path to the font files is relative to the url of the css file.

If that doesn't fix your issue then please see related topics on StackOverflow - I see at least 4 with an almost identical title in the "Related" column on the right-hand side of this question.

Upvotes: 0

Related Questions