Re: [csswg-drafts] [css-fonts-5] advance-override details (#5983)

In the case of `À`, if the font doesn't form a precomposed glyph for À, the diacritic will have zero width and therefore "overriding" its width with a percentage will not have any effect. If OpenType mark attachment has been used to position it, it should maintain its position relative to the base glyph to which it is attached.

If the font didn't actually attach the glyph, but just used a zero-width glyph with negative left sidebearing, so that it "overstrikes" the preceding letter, then adjusting the advance of the base letter could have the effect of shifting the diacritic relative to its base. But I don't think that's a common situation.

(Contrary to what I understood @litherum to be saying on the recent call, my current thinking is that it should be possible to apply `advance-override` *during* (not after) the text shaping process, and this will automatically yield proper behavior for things like mark attachment within a cluster. But I have not attempted to implement this, and maybe it will break in ways I'm not currently anticipating.)

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


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

Received on Thursday, 4 March 2021 22:38:54 UTC