1
ich die folgende Struktur in einer Website mit:font-family funktioniert nicht in CSS obwohl die Struktur in Ordnung ist
- Wurzel
- Thema
index.html
- Werte
- MyFont
- css
fontiran.css
undstyle.css
- Schriftarten
IRANSansWeb.eot
,IRANSansWeb.woff
,IRANSansWeb.woff2
undIRANSansWeb.ttf
- css
- MyFont
- Thema
und der Inhalt:
index.html:
[...]
<link href="../assets/myfont/css/style.css" rel="stylesheet">
[...]
style.css:
@import url(fontiran.css);
body {
font-family: IRANSans !important;
}
fontiran.css:
@font-face {
font-family: IRANSans;
font-style: normal;
font-weight: normal;
src: url('../fonts/IRANSansWeb.eot');
src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
url('../fonts/IRANSansWeb.woff2') format('woff2'),
url('../fonts/IRANSansWeb.woff') format('woff'),
url('../fonts/IRANSansWeb.ttf') format('truetype');
}
Aber die Schrift nicht funktioniert auf der Internetseite. FontFinder
Plugin für Firefox zeigt:
Font
===============================
font-family (stack): IRANSans
Font being rendered: System Default
font-size: 13px
Aber es ist nicht verwendet wird. Was ist das Problem genau?
ttf, woff und woff2 sind in [Andere Typen] enthalten. Ich habe sie nur aus Gründen der Lesbarkeit übersprungen. – asDca21