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

[Impeller] Round glyph locations per-run to fix per-glyph jitter #40073

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

bdero
Copy link
Member

@bdero bdero commented Mar 4, 2023

Resolves flutter/flutter#121531.

Round glyph positions relative to the text run origin so that individual characters in the run will snap to the pixel grid together. Note that as the atlas changes, there may still be a subpixel/antialiasing jitter, but this should be much less apparent than the full 1 pixel jitter that this patch fixes.

Before:

Screen.Recording.2023-03-03.at.5.19.32.PM.mov

After:

Screen.Recording.2023-03-03.at.5.21.15.PM.mov

@bdero bdero self-assigned this Mar 4, 2023
@bdero
Copy link
Member Author

bdero commented Mar 4, 2023

The after video actually has zero visible per-glyph jitter in the runs, but the compression of the video compression is making it look a tiny bit jittery.

@bdero bdero force-pushed the bdero/fix-text-run-jitter branch from ff9a559 to 64091e2 Compare March 4, 2023 01:38
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bdero bdero force-pushed the bdero/fix-text-run-jitter branch 2 times, most recently from 7836078 to fe2ea5b Compare March 4, 2023 04:26
@bdero bdero force-pushed the bdero/fix-text-run-jitter branch from fe2ea5b to 7cffa79 Compare March 4, 2023 06:18
@bdero bdero merged commit 197b6da into flutter:main Mar 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 6, 2023
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this pull request Mar 6, 2023
…r-glyph jitter (flutter/engine#40073) (#122002)

Commit: d940ec1f761404c849c23afa708c232d34f2a016
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Mar 6, 2023
…itter (flutter/engine#40073) (#122002)

Roll Flutter Engine from f8ec13dade7c to 197b6dae1c31 (1 revision)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Impeller] Subtle pixel shifts in text during page transitions
3 participants