Re: [csswg-drafts] Interoperable font metrics (#4792)

> Hm, advance-override would only work reasonably for monospace fonts, right? On a variable-width font, it would set the advance for all characters to the override value, effectively turning it into monospace, which seems bad.

Ah, I was misled by the name; as currently specified, it adds a value to the existing advance of each character. So to get a fallback monospace to match the primary monospace, you set it to the difference in their two widths. The name should be changed, or the meaning should match the name. ^_^

This *would* then work for variable-width fonts, but as Elika said in the call and Myles suggested in earlier comments, handling variable-width well probably wants a smarter solution: `l` and `w` probably want different amounts of advance adjustment; it probably wants to act like letter-spacing and not add space at the end of a span; etc.

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


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

Received on Wednesday, 16 September 2020 16:45:48 UTC