Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N/A value or synthesized value for TextMetrics when fonts don't have values #5830

Open
kojiishi opened this issue Aug 16, 2020 · 0 comments
Open
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: canvas

Comments

@kojiishi
Copy link

This is to discuss in parallel with w3c/csswg-drafts#5380 as per @annevk's advice.

Authors want to get more information from fonts, but often not all fonts can provide all information. For rendering, we might need to do some fallback, but for TextMetrics, we have options to a) provide synthesized value or b) provide the unavailability of the value.

TextMetrics is used in JavaScript, where authors can write their favorite fallback logic. I think authors would like to distinguish values in fonts (and thus should be high-quality unless the font has problems) from synthesized low-quality values.

In this specific discussion, the proposed fallback algorithm produced poor results for Blink (see picture in w3c/csswg-drafts#5380), but this may also apply to other cases, such as ideographicBaseline or hangingbaseline.

@yiyix @jfkthame

@annevk annevk added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: canvas labels Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: canvas
Development

No branches or pull requests

2 participants