- From: fantasai via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Mar 2021 02:15:39 +0000
- To: public-css-archive@w3.org
fantasai has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-fonts-5] Add glyph scaling override descriptor to @font-face == In https://github.com/w3c/csswg-drafts/issues/5983#issuecomment-788776441 @jfkthame wrote: > I think there should be a separate font-size-override that can apply a scale factor to the used font size; I suspect this would often be the better tool to use. Using a scaling factor to make adjustments for font fallback would avoid some of the more problematic aspects of advance-override (breaking cursive/complex scripts, breaking typographic rhythm by adding uneven spacing, breaking alignment at the edges of paragraphs). It also provides a long-needed feature--optically matching fonts when mixing font faces--by allowing per-font scaling adjustments at the author's discretion. `font-size-adjust` does this for certain bicameral scripts by using the ex-height metric, but that doesn't work more generally across writing systems as noted in https://github.com/w3c/csswg-drafts/issues/4540 . The proposal would be to add a descriptor taking a percentage and effectively functions [the same as `font-size-adjust`](https://www.w3.org/TR/css-fonts-4/#font-size-adjust-prop) for a given scale factor. Details to consider [suggestions in brackets to match font-size-adjust]: - Effect on `em` units? [No effect on `em`.] - Effect on `ch`/`ic`/`ex` units? [These are supposed to match glyph metrics, so are affected.] - Effect on baseline table? [Scales the table.] - Effect on ascent/descent metrics? [Should scale them also.] - Effect on `ascent-override`/`descent-override`/etc.? [Scales with the scale factor.] - Allow separate vertical/horizontal scale factors? [No idea. We can start with one and see if independent axes are needed.] Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6075 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 02:15:41 UTC