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

> One subtle issue is that, what exactly is the value being overridden? It should not be the font-size property value, neither computed nor used, since they work at different levels and should better not have extra dependency.

While I agree with @jfkthame on the behavior details, I'd like to reiterate on this more fundamental question, and hope we can get a better answer.

So far, we've discussed various metrics/values that the proposed descriptor should or should not interact with. My concern is that this is not a clean way to write a definition, as in this way we need to specify the interactions with an exhaustive list of metrics/values, which we probably don't have. And it's error-prone.

That's why I proposed that the descriptor is a modification to the font selection algorithm in https://github.com/w3c/csswg-drafts/issues/6075#issuecomment-790976804. In this way it should satisfy all the detailed behaviors that @jfkthame proposed.

The definition I proposed still looks a bit hacky and is just borderline acceptable to me. I'll be happy to see a better alternative.

> The proposal would be to add a descriptor taking a percentage and effectively functions the same as font-size-adjust for a given scale factor.

This doesn't look correct to me, as `font-size-adjust` is applied to the used `font-size` of the element instead of any font face. It also seems a bit risky since there are too many things depending on `font-size`...

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


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

Received on Monday, 8 March 2021 23:51:25 UTC