Próbuję użyć Segoe UI Light, Segoe UI Semilight i Segoe UI na stronie internetowej. Świetnie radzi sobie w IE, ale wydaje się, że Chrome nie rozróżnia Light i Semilight.Segoe UI Semilight w CSS nie działa na Chrome
Używam CSS sugerowanego na this StackOverflow answer, zgodnie z sugestią Microsoft.
/*
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");
}
Poniższy jsfiddle przedstawia różne grubości z Segoe UI, w tym światła i Semilight: http://jsfiddle.net/nHXDA/
Oto wyniki.
Chrome:
IE:
Wszelkie pomysły jak to naprawić?
Mam ten sam problem. Oto CodePen pokazujący, że nakłada się na lokalny interfejs Segoe za pomocą czcionki internetowej: http://codepen.io/mikewheaton/pen/vxVgJx –