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

ensure lcd filter padding is applied to cbox when rasterizing glyphs with FreeType #3432

Merged
merged 2 commits into from
Dec 18, 2018

Conversation

lsalzman
Copy link
Contributor

@lsalzman lsalzman commented Dec 18, 2018

This resolves Gecko bug https://bugzilla.mozilla.org/show_bug.cgi?id=1508163

We don't apply the lcd filter padding when querying the cbox to rasterize the glyph, even though we apply the padding when querying the bounds. This causes subpixel AA text to get shifted by the amount of the padding due to the padding not being accounted for in the offset.

The solution is to apply the padding in both cases so it properly cancels out.


This change is Reviewable

@lsalzman
Copy link
Contributor Author

@kvark
Copy link
Member

kvark commented Dec 18, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit bfaa542 has been approved by kvark

@bors-servo
Copy link
Contributor

⌛ Testing commit bfaa542 with merge aa73c6a...

bors-servo pushed a commit that referenced this pull request Dec 18, 2018
ensure lcd filter padding is applied to cbox when rasterizing glyphs with FreeType

This resolves Gecko bug https://bugzilla.mozilla.org/show_bug.cgi?id=1508163

We don't apply the lcd filter padding when querying the cbox to rasterize the glyph, even though we apply the padding when querying the bounds. This causes subpixel AA text to get shifted by the amount of the padding due to the padding not being accounted for in the offset.

The solution is to apply the padding in both cases so it properly cancels out.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3432)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: kvark
Pushing aa73c6a to master...

@bors-servo bors-servo merged commit bfaa542 into servo:master Dec 18, 2018
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Dec 19, 2018
…639f3d748c53 (WR PR #3432). r=kats

servo/webrender#3432

Differential Revision: https://phabricator.services.mozilla.com/D14937

--HG--
extra : moz-landing-system : lando
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Dec 19, 2018
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…639f3d748c53 (WR PR #3432). r=kats

servo/webrender#3432

Differential Revision: https://phabricator.services.mozilla.com/D14937

UltraBlame original commit: 774c8752277535794cf081417ac0b0f0fb1b96a1
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…639f3d748c53 (WR PR #3432). r=kats

servo/webrender#3432

Differential Revision: https://phabricator.services.mozilla.com/D14937

UltraBlame original commit: 774c8752277535794cf081417ac0b0f0fb1b96a1
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…639f3d748c53 (WR PR #3432). r=kats

servo/webrender#3432

Differential Revision: https://phabricator.services.mozilla.com/D14937

UltraBlame original commit: 774c8752277535794cf081417ac0b0f0fb1b96a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants