Re: [csswg-drafts] [css-fonts-5] Add glyph scaling override descriptor to @font-face (#6075)

Agenda+ to discuss accepting the proposal: an `@font-face` descriptor accepting a percentage that, like `font-size-adjust`, scales the computed font-size before using it to select the font face, thus affecting all metrics associated with the font (including those overridden via explicit `@font-face` descriptors) as well as the glyph outlines themselves, but not affecting `em` or `line-height` other than `normal` (since the *computed* `font-size` remains intact).

I suggest the name `size-adjust`, because it's an adjustment on the size; and the reference to `font-size-adjust` is appropriate, since it behaves the same way.

The use cases this addresses are:
- Helping to keep text content wrapping stably as font faces load (see https://github.com/w3c/csswg-drafts/issues/5533) without breaking the relationship of adjacent glyphs on the line.
- Making adjustments to fonts that, at the same `font-size`, look differently sized so that they can be optically matched when used together in the document. Since the author controls this adjustment explicitly, it can be used for writing systems aren't helped by the automatic ex-height/cap-height ratio adjustments that `font-size-adjust` provides. (See https://github.com/w3c/csswg-drafts/issues/4540)


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


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

Received on Tuesday, 16 March 2021 03:28:41 UTC