私は複数のフォントファイルを持っており、フォントウェイトにマップする必要があります。@ 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;
}
font-weightをnumberとbold/normalにマッピングする必要がありますか?これは動作していません。私は全体のフォントフェイスブロックを複製したくない。
Webにはどのフォントタイパーが必要ですか?私はいくつかのことを間違えることはできますか? (EOT、woff2、WOFF、TTF、SVG)
ありがとう
[複数のフォントウェイト、1つの@ font-faceクエリ](http:// stackoverfl ow.com/questions/28279989/multiple-font-weights-one-font-face-query) – Vixed
正確には重複していません。私が理解する限り、OPは異なるフォントに同じフォントファイルを追加するのではなく、数字と文字列の表記をサポートしたいのです – Connum