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

SubpixelAA FreeType rasterize_glyph fix #254

Merged
merged 7 commits into from
Oct 12, 2024
Merged

Conversation

lte678
Copy link
Contributor

@lte678 lte678 commented Oct 12, 2024

This fixes rasterize_glyph for SubpixelAA in FreeType and adds a new test covering this case.
Fixes issue #252.

There is a also a small type change to bytes_per_pixel to avoid casts to usize.

@jdm
Copy link
Member

jdm commented Oct 12, 2024

There is a also a small type change to bytes_per_pixel to avoid casts to usize.

Since this changes a public method, it requires a major version update. Could we exclude this change from this PR since it's not a critical part of the fix?

Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! These changes look reasonable, but as mentioned I'd like to avoid unnecessary public API changes if possible.

@lte678
Copy link
Contributor Author

lte678 commented Oct 12, 2024

Absolutely, I missed that it's a public facing api.

The change has been reverted 👍

@jdm jdm enabled auto-merge October 12, 2024 15:23
@jdm jdm added this pull request to the merge queue Oct 12, 2024
Merged via the queue into servo:main with commit 32571e9 Oct 12, 2024
3 of 4 checks passed
@lte678 lte678 deleted the subpixelaa-raster-fix branch October 12, 2024 17:13
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.

2 participants