WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-08-18 09:18:12 PDT
<
rdar://problem/67331644
>
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!
Ahmad Saleem
Comment 4
2023-10-10 09:32:42 PDT
Still has FIXME:
https://searchfox.org/wubkat/source/Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp#244
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug