如何添加一个小型大写字体变体?
我正在使用Jos Buivenga的Fontin字体,它的小型大写字母变体是一种单独的字体而不是OpenType风格特性。这个CSS片段正确地定义了该系列中的常规、粗体和斜体字体,但没有小型大写字母字体。我该如何让它起作用?
/* A font by Jos Buivenga (exljbris) -> www.exljbris.com */
@font-face {
font-family: "Fontin";
src: url(../Fonts/Fontin-Regular.ttf) format("truetype");
}
@font-face {
font-family: "Fontin";
font-style: italic;
src: url(../Fonts/Fontin-Italic.ttf) format("truetype");
}
@font-face {
font-family: "Fontin";
font-weight: bold;
src: url(../Fonts/Fontin-Bold.ttf) format("truetype");
}
@font-face {
font-family: "Fontin";
font-variant: small-caps;
src: url(../Fonts/Fontin-SmallCaps.ttf) format("truetype");
}
@font-face
的官方文档,似乎你是对的:不支持font-variant
。 - J. C. Salomon