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

Don't allow font API usage when subsystem is not init #2371

Merged

Conversation

dr0id
Copy link
Contributor

@dr0id dr0id commented Aug 2, 2023

follow up pr for #2175, related to #1506 and #2255

@yunline yunline added Android font pygame.font bugfix PR that fixes bug freetype pygame.freetype and removed Android font pygame.font labels Aug 2, 2023
@dr0id dr0id marked this pull request as ready for review August 17, 2023 20:39
@dr0id dr0id requested a review from a team as a code owner August 17, 2023 20:39
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

Not sure why this has a larger than needed diff, could you rebase against main?

@dr0id
Copy link
Contributor Author

dr0id commented Aug 19, 2023

Not sure why this has a larger than needed diff, could you rebase against main?

Not sure why the line endings are messed up! This is the only reason I see this diff is so large.

Copy link
Member

@MyreMylar MyreMylar left a comment

Choose a reason for hiding this comment

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

The diff looks good to me now. We've had a lot of these quit() then use segfault errors crop up, good to clear out one more.

This will definitely need a squash and merge by the looks of things.

Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

Left two minor reviews for you resolve at will, but apart from that this PR LGTM, thanks 🍰

@ankith26 ankith26 added this to the 2.4.0 milestone Sep 26, 2023
@dr0id dr0id requested a review from ankith26 September 30, 2023 14:17
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR 🎉

@ankith26 ankith26 merged commit 754c2e9 into pygame-community:main Oct 3, 2023
32 checks passed
@ankith26 ankith26 changed the title Enhancement/font/check initialization Don't allow font API usage when subsystem is not init Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR that fixes bug font pygame.font freetype pygame.freetype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants