L
L
leni_m2018-06-09 18:55:45
css
leni_m, 2018-06-09 18:55:45

Why doesn't IE see the font?

@font-face {
    font-family: "font1";
    src: url("../fonts/font1.ttf") format("truetype");
}
@font-face {
    font-family: "font2";
    src: url("../fonts/font2.ttf") format("truetype");
}
.el1 {
    font-family: "font1", "sans-serif";
}
.el2 {
    font-family: "font2", "sans-serif";
}

For some reason, el1 is getting the font applied, but el2 is getting "sans-serif" applied. In chrome it applies to both, but in IE only to one. What the hell?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ice, 2018-06-09
@leni_m

IE needs .eot font format
https://msdn.microsoft.com/en-us/library/ms533034(...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question