- From: Roman Komarov via GitHub <noreply@w3.org>
- Date: Wed, 12 Nov 2025 21:31:21 +0000
- To: public-css-archive@w3.org
> As a simple concrete example just font-family: sans-serif can map to many different fonts depending on the operating system. > While what you presented may work for a well-behaved font, it doesn't work in the general case, and we shouldn't disable the feature entirely if a developer just happens to use a particular font, and/or a glyph that is missing, etc. Here is an example of a text line that uses 6 different font families: https://codepen.io/kizu/pen/raeONmq — it all scales correctly, without any issues. For all regular fonts, they all scale at the same rate, so it shouldn't matter if some font will miss some glyphs — the substitute fonts will scale at the same rate. I think the most helpful would be if you could provide counterexamples that _won't_ work, because for any fonts that I tried — it just works. Any potential weirdness that I can think of could be potentially fixed similar to how I fix the optical sizing: after the first estimation where we calculate an approximate size, do only the glyphs scaling, “freezing” any applied non-linear effects. But, again, I would be happy to see concrete examples where my proposed algorithm doesn't work. -- GitHub Notification of comment by kizu Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12888#issuecomment-3524014070 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 12 November 2025 21:31:21 UTC