Skip to content

Updated harfbuzz to 2.6.7 - #4696

Merged
hugovk merged 2 commits into
python-pillow:masterfrom
radarhere:harfbuzz
Jun 14, 2020
Merged

hugovk merged 2 commits into
python-pillow:masterfrom
radarhere:harfbuzz

Conversation

@radarhere

Copy link
Copy Markdown
Member

I've found that since harfbuzz 2.6.5, the test_imagefont test_variation_set_by_* tests started failing. Looking further, I find that it is just the assertions for AdobeVFPrototype.ttf that are failing, while TINY5x3GX.ttf passes.

Visually inspecting the difference, you get

_______ variation_adobe.png variation_adobe_name.png variation_adobe_axes.png
Before variation_adobe_older_harfbuzz variation_adobe_older_harfbuzz_name variation_adobe_older_harfbuzz_axes
After variation_adobe variation_adobe_name variation_adobe_axes

Looking at the harfbuzz release notes for 2.6.5, my complete guess is that 'AAT is now always preferred for horizontal scripts when both AAT and OT layout tables exist at the same time.' might be culprit, AAT standing for Apple Advanced Typography while OT would be OpenType.

Rather than simply increase the epsilon to allow for the difference, I've created separate images in the test suite for before and after this change, accepting either as a passing test case.

@nulano

nulano commented Jun 14, 2020 •

Copy link
Copy Markdown
Contributor

This is probably what was causing the issues for the MinGW builds. Can you try removing the skip marks?

@radarhere

Copy link
Copy Markdown
Member Author

Yep, ok, removed.

@hugovk
hugovk merged commit 73f5684 into python-pillow:master Jun 14, 2020
@hugovk

hugovk commented Jun 14, 2020

Copy link
Copy Markdown
Member

Thanks both!

@nulano nulano mentioned this pull request Jun 14, 2020
@radarhere
radarhere deleted the harfbuzz branch June 14, 2020 21:26
@aclark4life aclark4life added the PNG label Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants