local font-face not working as expected
Reported by
gabriell...@gmail.com,
Aug 2 2016
|
||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36
Example URL:
Steps to reproduce the problem:
1. run the attached file on chrome, the different font weights look different even though I have mapped all the font weights to the same local file so all the text should look the same.
2. run the same attached file on FF or IE11. all the text looks the same as expected.
What is the expected behavior?
I have mapped all the font weights to the same local file so all the text should look the same.
Meaning I have code like the following in the file.
@font-face {
font-family: "Segoe UI";
font-weight: 100;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 200;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 300;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 400;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 500;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 600;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 700;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 800;
src: local("Segoe UI");
}
@font-face {
font-family: "Segoe UI";
font-weight: 900;
src: local("Segoe UI");
}
html {
font-family: "Segoe UI";
}
What went wrong?
chrome is ignoring my local @font-face rules.
Does it occur on multiple sites: N/A
Is it a problem with a plugin? No
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 52.0.2743.82 Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 22.0 r0
,
Aug 2 2016
The local font file contains all of the different weights. This is intentional and working as expected.
,
Aug 3 2016
I see in the rendered font section of computed style that it's using the following for font-weight 100, 200, 300. Segoe UI Light—Local file(16 glyphs) However I specified Segoe UI for those weights, not Segoe UI Light.
,
Aug 3 2016
I'm not sure if/how to reopen bugs, filed another https://bugs.chromium.org/p/chromium/issues/detail?id=634070
,
Aug 4 2016
Issue 634070 has been merged into this issue.
,
Aug 5 2016
I think the dev team need to look at the issue again. As I said, it's not using the local font I specified. I see in the dev tools > computed styles > rendered fonts that it's using Segoe UI Light the following for font-weight 100, 200, 300. I specified Segoe UI for those weights, not Segoe UI Light. |
||
►
Sign in to add a comment |
||
Comment 1 by brajkumar@chromium.org
, Aug 2 2016Labels: M-54 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)