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

We think of `font-size-adjust` as a scaling factor applied to the rendered glyph, nothing more. It has no effect on em or any other  units, so if the intention is for this property is to match the same behaviour I'd agree with @drott 

>  It also seems a bit risky since there are too many things depending on font-size

precisely why I think this should have no impact on any metrics. So I'm a bit worried about this:

>  But if ascent etc are not overridden by descriptors, the font's normal metrics will be affected by the scale factor.

If we're going to be adjusting `ch`, `ic` etc. then how is that going to be applied to an element that contains two fonts in the `font-family`, one with scaling and one without? How much letter spacing is applied in this example?
```css
@font-face {
    font-family: "foo";
    scale-factor: 2;
    unicode-range: U+41;
}
<div style="font-size: 10px; font-family: foo, serif; letter-spacing: 1ch">AB</div>
```
I think a clear distinction needs to be made between `ascent-override` etc. which are set in the @font-face and apply only to that family; and units, which apply to an element that may comprise of multiple font families. If the scaling factor applies to the former type of property, I don't really have an opinion but it's not going to be problematic either way. But I'm nervous about scaling applying to units in any way, because I don't see how it can be applied.

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


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

Received on Tuesday, 9 March 2021 09:19:32 UTC