W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

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

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Mon, 24 Aug 2020 18:31:58 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-684878394-1598293917-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC