【发布时间】:2015-01-24 00:33:29
【问题描述】:
我正在尝试在网页上使用 Segoe UI Light、Segoe UI Semilight 和 Segoe UI。它在 IE 中的渲染效果很好,但 Chrome 似乎并没有区分 Light 和 Semilight。
按照 Microsoft 的建议,我正在使用 this StackOverflow answer 上建议的 CSS。
/*
Explicitly define a Segoe UI font-family so that we can assign Segoe UI
Semilight to an appropriate font-weight.
*/
@font-face {
font-family: "Segoe UI";
font-weight: 200;
src: local("Segoe UI Light");
}
@font-face {
font-family: "Segoe UI";
font-weight: 300;
src: local("Segoe UI Semilight");
}
@font-face {
font-family: "Segoe UI";
font-weight: 400;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 600;
src: local("Segoe UI Semibold");
}
@font-face {
font-family: "Segoe UI";
font-weight: 700;
src: local("Segoe UI Bold");
}
@font-face {
font-family: "Segoe UI";
font-style: italic;
font-weight: 400;
src: local("Segoe UI Italic");
}
@font-face {
font-family: "Segoe UI";
font-style: italic;
font-weight: 700;
src: local("Segoe UI Bold Italic");
}
以下 jsfiddle 展示了 Segoe UI 的各种字体粗细,包括 Light 和 Semilight: http://jsfiddle.net/nHXDA/
这是结果。
铬:
IE:
关于如何解决这个问题的任何想法?
【问题讨论】:
-
我遇到了同样的问题。这是一个 CodePen,显示了使用 Web 字体覆盖本地 Segoe UI:codepen.io/mikewheaton/pen/vxVgJx