[csswg-drafts] [css-text][css-fonts] Optical bounds of a line (#5466)

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

== [css-text][css-fonts] Optical bounds of a line ==
@sashimiethan forwarded a question about getting visual alignment at the start/end of the line:
<img width="231" alt="side-bearing" src="https://user-images.githubusercontent.com/725717/91082106-01ecbc80-e5fd-11ea-8c0b-21b279fcb698.png">

Turns out there's an OpenType feature for this (at least, in horizontal text), which is expected to be on by default. Should we note this in the spec or something?

https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#tag-opbd
> This feature should be active by default. It effectively changes the line length, so justification algorithms should account for this adjustment.

If we want control over it, I'd suggest adding to the `font-kerning` property: it's effectively kerning with respect to the start/end edge.

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


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

Received on Monday, 24 August 2020 18:32:00 UTC