Ich habe mehrere Schriftdateien und ich brauche es, um es auf einige Schriftarten zu mappen.mehrere Dateien für mehrere Font-Weight mit @ font-face
@font-face {
font-family: "custom-font";
src: url("font300.eot");
src: url("font300.eot?#iefix") format("embedded-opentype"),
url("font300.woff2") format("woff2"),
url("font300.woff") format("woff"),
url("font300.ttf") format("truetype"),
url("font300.svg#font-300") format("svg");
font-weight: 300, normal;
font-style: normal;
}
@font-face {
font-family: "custom-font";
src: url("font500.eot");
src: url("font500.eot?#iefix") format("embedded-opentype"),
url("font500.woff2") format("woff2"),
url("font500.woff") format("woff"),
url("font500.ttf") format("truetype"),
url("font500.svg#font500") format("svg");
font-weight: 500, bold;
font-style: normal;
}
Ich brauche font-weight Anzahl abzubilden und fett/normal, ist es möglich? Das funktioniert nicht. Ich möchte nicht den gesamten Font-Face-Block duplizieren.
Welche Schriftarten werden für das Web benötigt? Kann ich etwas weglassen? (EOT, woff2, woff, ttf, svg)
Sie danken
Mögliches Duplikat von [Mehrere Schriftgewichte, eine @ font-face Abfrage] (http: // stackoverfl ow.com/questions/28279989/multiple-font-weights-one-font-face-query) – Vixed
Nicht genau ein Duplikat. soweit ich verstehe, das OP möchte nicht die gleiche Schriftart Datei zu verschiedenen Gewichtungen hinzufügen, aber will nur die numerische und die String-Notation des Gewichts – Connum