Re: [csswg-drafts] Hanging punctuation should include hyphens, particularly those used with justify [css-text-3] [css-text-4] (#9329)

> For optical alignment, my thought is that the best place to define it would be the font itself, like in a "start edge to X" pairs kerning table. And have a switch to enable that in CSS. (Idk if OpenType has such a thing... or even if it does, if any fonts implement it.) Because the amount by which you want to hang depends a lot on the design of the glyph.

I completely agree that ideally it would be defined in the font per glyph. But I'm too far from understanding how fonts work inside, how hard would it be to propose/implement something like this as something available in the font editors etc, so I'm talking about how I would like to see it in CSS. It would be awesome if font authors could just provide this info, and web browsers could just use this info!

> But for Latin, we find it happening sometimes e.g. on pull quotes in particular, but that's usually a first/last thing rather than a start-edge/end-edge thing.

Usually, not not always: most cases in latin/cyrillic typography I saw were handling hanging cases in the middle of the text as well, not only in the beginning and end (I'm completely unfamiliar with CJK, so could only speak about latin/cyrillic cases).

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


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

Received on Saturday, 9 September 2023 17:04:08 UTC