Re: [csswg-drafts] [css-fonts-4] [Variable Fonts] Angle direction of font-style

Looking at the existing text, the section on descriptors [says](https://drafts.csswg.org/css-fonts-4/#font-prop-desc)

>  The meaning of the values for these descriptors are the same as those for the corresponding font properties except that relative keywords are not allowed, bolder and lighter.

and the section on the corresponding properties [says, regarding the oblique angle](https://drafts.csswg.org/css-fonts-4/#valdef-font-style-oblique-angle)

> **oblique <angle>?**
    Controls matching against an oblique face. Positive angles represent a clockwise slant; negative angles represent a counter-clockwise slant. The lack of an <angle> represents 14deg.

So it is already clear that the property (and thus the descriptor) indicate a clockwise slant with a positive angle. I therefore propose to mention the opposite angle used internally by OpenType

a) in the definition of the `font-style` property, noting that implementations will need to invert the angle internally when generating a specific variable font instance
b) in section on [`font-variation-settings`](https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def), noting that the sign of the angle conforms with OpenType and thus is the opposite sign of the angle used in the corresponding CSS property and descriptor.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3091#issuecomment-431780259 using your GitHub account

Received on Monday, 22 October 2018 10:20:07 UTC