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

clamp coverage value in text.rs between 0.0 and 1.0; #566

Merged
merged 1 commit into from
Apr 13, 2024
Merged

clamp coverage value in text.rs between 0.0 and 1.0; #566

merged 1 commit into from
Apr 13, 2024

Conversation

asibahi
Copy link
Contributor

@asibahi asibahi commented Apr 9, 2024

Very minimal change. I had copied the code from this crate to use in my own projects, and found out that sometimes ab_glyph gives a higher coverage value than 1.0 when there are overlapping glyphs (like in Arabic.) The same change worked in my code. You can find the relevant issue here: alexheretic/ab-glyph#101

@theotherphil
Copy link
Contributor

Thanks!

@theotherphil theotherphil merged commit 62401e8 into image-rs:master Apr 13, 2024
13 of 14 checks passed
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