Re: [csswg-drafts] [css-fonts] Proposal to extend CSS font-optical-sizing (#4430)

> My suggestion would be to add two keywords, px and pt to font-optical-sizing

This seems like a potentially useful feature, _but_ it puts the onus on the font user for knowing what is correct for a particular font. How are they supposed to know what scale the font was developed and tested on by the type designer? Best case, they would have to learn this from documentation of a font. But, of course, this has a pretty low success rate (as any type designer could tell you about people’s awareness of OpenType features like stylistic sets).

What if, instead, the OpenType spec added a flag that could be set to indicate if a font’s `opsz` was designed for px vs pt units? Then, that flag could be checked by text layout/rendering engines. That way, fonts like SF could indicate that they are designed for a px scale, while fonts tested on a pt scale could also indicate that.

What is “correct/wrong” is ultimately whether the output consistently matches the design intent, right? It seems that px are a default baked into browsers while points are a default baked into the OpenType spec, so perhaps there needs to be some kind of flag to allow the two to be interoperable. But, this flag should be handled in the font, not in the CSS.

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


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

Received on Wednesday, 16 September 2020 18:41:29 UTC