[csswg-drafts] [css-fonts] Improve implementation guidance for font-kerning (#7958)

jfkthame has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts] Improve implementation guidance for font-kerning ==
The [CSS Fonts spec](https://drafts.csswg.org/css-fonts/#font-kerning-prop) says that when kerning is enabled (i.e. with `font-kerning: normal`, or with the initial `auto` value "at the discretion of the user agent"), the OpenType 'kern' (horizontal) or 'vkrn' (vertical) feature should be applied.

In https://bugzilla.mozilla.org/show_bug.cgi?id=1797431, the reporter points out that the [OpenType feature registry](https://learn.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-palt) says that

> If 'kern' is activated, 'palt' must also be activated if it exists.

Similarly, 'vpal' is [supposed to be applied](https://learn.microsoft.com/en-us/typography/opentype/spec/features_uz#vpal) along with 'vkrn'.

Current browser engines appear to have overlooked this, and by default apply 'kern' but not 'palt' in the reporter's testcase.

I'd suggest it would be helpful to mention these associated features in the CSS Fonts description of how kerning is implemented when using OpenType fonts.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7958 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 26 October 2022 15:07:16 UTC