Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@bdero
Copy link
Member

@bdero bdero commented Sep 7, 2022

gskinnerTeam/flutter-wonderous-app#11.

This change fixes both issues I described in the corresponding bug (and seems to solve other text quality problems as well!)

The bounds bug turned out to be usage of the deprecated top/bottom bounds values -- this doesn't correspond to actual pixel coverage of some glyphs (including all of the Chinese glyphs in this particular typeface). The safe way to determine the max onscreen coverage glyphs seems to be the ascend/descend values. We were also already using the baseline ascend for positioning glyphs in the scene, so this also corrects the positioning, which was off by a couple of pixels.

Additionally, for the atlas generation I switched from scaling the point value directly to scaling Skia's CTM. I don't think this changes anything in this typeface, but it's more correct and may fix problems in other typefaces we haven't seen yet.

image

I don't think we have typefaces with Chinese glyphs in the repo, but the existing text playgrounds continue to work/look good (and the English version of the Wondrous app seems to have fewer text artifacts).

@bdero bdero self-assigned this Sep 7, 2022
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 7, 2022
@auto-submit auto-submit bot merged commit a8551aa into flutter:main Sep 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 7, 2022
Oleh-Sv pushed a commit to Oleh-Sv/engine that referenced this pull request Sep 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller needs tests

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants