Pobrałem kilka czcionek OWF, a następnie przekonwertowałem je na e-mail za pomocą: https://onlinefontconverter.com, ale kiedy przeglądam stronę w IE8, czcionki nie wyświetlają się (wyświetlają się w Chrome, Firefox, Opera, Android). Coś musi być nie tak z moim kodem lub eot. Czy ktoś wie, co jest nie tak?Dlaczego program IE8 nie ładuje plików eot?
(Pobierz ROBOTO tutaj: http://www.fontsquirrel.com/fonts/roboto)
(Konwersja tutaj: https://onlinefontconverter.com)
styles.css
@font-face
{
font-family: RobotoCondensed;
src: url("Roboto-Condensed.eot");
}
@font-face
{
font-family: RobotoCondensed;
src: url("Roboto-Condensed.ttf");
}
.myDiv
{
font-family: RobotoCondensed, Arial, Helvetica;
font-size: 10px;
color: #e8e8e8;
}
index.html (odpowiedni kod)
<div class="myDiv">Some font in here that shows incorrectly as Arial!</div>
Arkusz stylów i czcionka znajdują się w tym samym folderze.
Dlaczego nie 'font-family = Roboto-Condensed'? – elclanrs
Możesz nazwać to, co chcesz. –
Czy próbowałeś używać generatora czcionek w Font Squirrel? http://www.fontsquirrel.com/fontface/generator - zawiera wszystkie niezbędne czcionki i css dla wszystkich przeglądarek. –