NEW 215605
font-variation-settings from @font-face not applied
https://bugs.webkit.org/show_bug.cgi?id=215605
Summary font-variation-settings from @font-face not applied
Ernst
Reported 2020-08-18 05:44:00 PDT
Created attachment 406778 [details] test example What steps will reproduce the problem? (1) Define a @font-face with a variable font (2) Add a font-variation-settings rule to that @font-face (3) Use the font What is the expected result? font-variation-settings are applied to font What happens instead? font-variation-settings are not applied to font Please provide any additional information below. Attach a screenshot if possible. CSS Fonts module level 4 says: https://drafts.csswg.org/css-fonts-4/#font-rend-desc "These descriptors [font-feature-settings, font-variation-settings; my comment] define initial settings that apply when the font defined by an @font-face rule is rendered." (font-variation-settings DO work in Safari) Without this working, it is much more complicated and verbose to add a fallback for non-variable fonts when using `font-stretch`. This is a copy of https://bugs.chromium.org/p/chromium/issues/detail?id=1117456
Attachments
test example (2.42 KB, text/html)
2020-08-18 05:44 PDT, Ernst
no flags
Radar WebKit Bug Importer
Comment 1 2020-08-18 09:18:12 PDT
Myles C. Maxfield
Comment 2 2021-03-17 00:40:24 PDT
From preparePlatformFont(): // FIXME: Implement Step 6: the font-variation-settings descriptor inside @font-face
Jon Lee
Comment 3 2023-01-12 11:25:00 PST
Just ran into this issue myself. Would be great to have this fixed!
Note You need to log in before you can comment on or make changes to this bug.