Witam wszystkich,
Tak, jak w temacie Mozilla nie wyświetla czcionek pobranych od Google. Żeby było ciekawiej sytuacja ma miejsce nie na komputerze, na którym napisałem kod, a na drugim (na obu zainstalowana jest Mozilla). W Chromie - zarówno na jednym, jak i drugim komputerze - wszystko działa w porządku. Gdzie może tkwić problem?
Zaznaczę, że sprawdzałem dokładnie, co na ten temat piszą na Google Fonts. Próbowałem już również podpinać czcionki w CSS przez fontface. Wrzucam kod, jak podpinam czcionki w html:
<head>
<link href="https://fonts.googleapis.com/css?family=Amatic+SC|Enriqueta|Source+Sans+Pro:200,400,600&subset=latin-ext" rel="stylesheet">
</head>
i css:
@import url('https://fonts.googleapis.com/css?family=Amatic+SC|Enriqueta|Source+Sans+Pro:200,400,600&subset=latin-ext');
/*Amatic_SC*/
@font-face {
font-family: 'Amatic SC', cursive;
src: url("style/Amatic_SC/AmaticSC-Regular.ttf") format("truetype");
font-style: normal;
font-weight: normal;
}
/*Enriqueta*/
@font-face {
font-family: 'Enriqueta', serif;
src: url("style/Enriqueta/Enriqueta-Regular.ttf") format("truetype");
font-style: normal;
font-weight: normal;
}
/*Source Sans Pro*/
@font-face {
font-family: 'Source Sans Pro', sans-serif;
src: url("style/Source_Sans_Pro/SourceSansPro-ExtraLight.ttf") format("truetype");
font-style: normal;
font-weight: 200;
}
@font-face {
font-family: 'Source Sans Pro', sans-serif;
src: url("style/Source_Sans_Pro/SourceSansPro-Regular.ttf") format("truetype");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: 'Source Sans Pro', sans-serif;
src: url("style/Source_Sans_Pro/SourceSansPro-SemiBold.ttf") format("truetype");
font-style: normal;
font-weight: 600;
}
Próbowałem dodać nawet linijkę do css'a:
ul li {
font-family: 'Source Sans Pro', sans-serif;
font-family: 'Enriqueta', serif;
font-family: 'Amatic SC', cursive;
}
Ale i to nie działa.
Jakieś pomysły?