Closed smcv closed 2 years ago
Hi @smcv, thanks for reporting this! I'm in the process of updating the PySDL2 bindings to support the new TTF release (there's a lot of new stuff!) so this will be fixed along with that, but I can also fix it in the main branch if that'll make things easier on Debian's end!
You're right that there isn't really a guarantee of identical rendering results between TTF versions (even the linked version of FreeType can change things unexpectedly), so I should probably rewrite those tests to be less specific and more future-proof.
As a side note, I had no idea PySDL2 had a Debian package, cool! I've been a big fan of the Debian-based Crunchbang distro for years. If there's anything else I can do as a maintainer to make your lives easier, please let me know!
I'm in the process of updating the PySDL2 bindings to support the new TTF release (there's a lot of new stuff!) so this will be fixed along with that, but I can also fix it in the main branch if that'll make things easier on Debian's end
I need to get this test to pass in Debian before the new SDL_ttf release can be more widely available, because it's set up to be a QA gate to detect regressions, so it would be helpful to fix any regressions with the new release as a higher priority than fully supporting its new features. I hope #213 is suitable for that?
If there's anything else I can do as a maintainer to make your lives easier, please let me know!
I don't maintain the pysdl2 package myself (this is the first time I've looked at it) so I'll leave that to the people who are more closely associated with it! The developer-oriented overview of it is https://tracker.debian.org/pkg/pysdl2 if you're interested.
@smcv The other CI goof has been fixed and all runners are passing, so hopefully you're in good shape!
What doesn't work?
I'm a Debian SDL maintainer, in the process of upgrading from SDL_ttf 2.0.15 to 2.0.18. When Debian's CI infrastructure runs the pysdl2 0.9.9 unit tests against SDL_ttf 2.0.18, they fail:
Full log
I haven't tried this with 0.9.10 or git master, but the test in git master seems to have the same expected values as 0.9.9, so presumably the result will still be the same.
2.0.18 uses Harfbuzz for better support for non-Latin text and 2.0.15 did not, which might explain the different width; I don't think SDL_ttf aims to make any particular guarantee that text will render as exactly the same pixels in each version.
How To Reproduce
The test case that's run is basically this (slightly simplified here to avoid Debian-specific infrastructure):
Platform (if relevant):