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

Add a semi-automatic test for #221 #224

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

smcv
Copy link
Contributor

@smcv smcv commented May 26, 2022

This needs to be given a valid font as a command-line argument, but is
otherwise automatic.


Includes #223.

I haven't wired this up to the CMake build system or the CI, because I don't want to put this on the critical path for 2.20.0, but it does seem to work.

smcv added 2 commits May 26, 2022 17:31
This fixes a regression for the py-sdl2 test suite, which exercises
the (now-deprecated) TTF_SetDirection() and TTF_SetScript(), and
expects setting a new global value to have an effect on pre-existing
font objects.

Resolves: libsdl-org#221
Signed-off-by: Simon McVittie <smcv@collabora.com>
This needs to be given a valid font as a command-line argument, but is
otherwise automatic.

Signed-off-by: Simon McVittie <smcv@collabora.com>
@smcv
Copy link
Contributor Author

smcv commented May 26, 2022

Given how long it took to get the SDL_image test passing reliably, if @slouken is doing 2.20.0 soon then I'm inclined to wait for 2.21.x to add this - it's just not as high a priority as the CMake build system or getting a release out.

1 similar comment
@smcv
Copy link
Contributor Author

smcv commented May 26, 2022

Given how long it took to get the SDL_image test passing reliably, if @slouken is doing 2.20.0 soon then I'm inclined to wait for 2.21.x to add this - it's just not as high a priority as the CMake build system or getting a release out.

@slouken
Copy link
Collaborator

slouken commented May 26, 2022

I'm okay with adding this now. The SDL_image test found bugs that were good to fix for the next release, so if that happens here, that makes me happy. :)

@smcv
Copy link
Contributor Author

smcv commented May 26, 2022

OK, I'll try to get it integrated into CI in a way that isn't randomly regressing, but please don't block on this for 2.20.

(Also please don't imagine that this is a thorough test - it doesn't even render any text.)

@slouken
Copy link
Collaborator

slouken commented Sep 27, 2024

@madebr, I'm working on updating SDL_ttf 3.0, do you want to take a look at this again?

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