-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-fonts] Interaction between font-synthesis-style and variable fonts #9391
Comments
Good catch and, I suspect, not an intended outcome. |
Re-reading this, there seems to be an assumption that geometric shearing and the use of a The edit suggestions are good, but I think that needs to be tightened up (for all the |
@frivoal do these edits address your comment, or is there more to do? |
ping @frivoal |
The definition of font-synthesis-style says:
But step 3 of "If the value of font-style is oblique[…]" in Matching font styles says:
Which means that
font-synthesis-style: none
not only turns off browser synthesis of oblique fonts, but also usage of the slnt axis in variable fonts that have it. This is unexpected: the definition of font-synthesis-style talks about its effects when a font family lacks oblique faces, but variable fonts with a slnt axis don't lack oblique, they have a whole range of them. I don't think we should talk about synthesis when the user agent is rendering a font as designed by the font designer.I'd suggest splitting this step 3 into two distinct ones:
3.1. For variable fonts with a slnt axis, a match is created by setting the slnt value with the specified oblique value.
3.2 If font-synthesis-style has the value auto, a fallback match is produced by geometric shearing to the specified oblique value
The text was updated successfully, but these errors were encountered: