웹 페이지에서 Segoe UI Light, Segoe UI Semilight 및 Segoe UI를 사용하려고합니다. IE에서 훌륭하게 렌더링되지만 Chrome은 Light와 Semilight를 구분하지 않는 것 같습니다.Segoe UI Semilight가 CSS에서 작동하지 않습니다.
Microsoft에서 제안한대로 this StackOverflow answer에 제안 된 CSS를 사용하고 있습니다. http://jsfiddle.net/nHXDA/
여기 결과이다 :
/*
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 가볍고 Semilight 포함 Segoe UI 다양한 폰트 가중치를 나타낸다.
크롬 :
IE :
이 문제를 해결하는 방법에 어떤 아이디어?
동일한 문제가 있습니다. 다음은 로컬 Segoe UI와 웹 글꼴을 오버레이하는 CodePen입니다. http://codepen.io/mikewheaton/pen/vxVgJx –