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

Fix SysFont None issue #2271

Merged
merged 2 commits into from
Jun 24, 2023
Merged

Fix SysFont None issue #2271

merged 2 commits into from
Jun 24, 2023

Conversation

Sjmarf
Copy link
Contributor

@Sjmarf Sjmarf commented Jun 23, 2023

In Pygame CE 2.3.0, a bug was introduced in which an error is raised by Pygame when initialising a SysFont object with None as shown below.

font = pygame.font.SysFont(None, 40)

This PR fixes the problem, and adds a test for it. Apologies, the error was almost certainly introduced in my PR #2147. It might be worth pushing this fix out in a minor version.

@Sjmarf Sjmarf requested a review from a team as a code owner June 23, 2023 19:35
@Starbuck5
Copy link
Member

I'm shocked nobody found this in the dev release that was out for a week with it, and it's only now shown up 10 days after release.

Yeah maybe we'll do a quicker than usual 2.3.1 to get this fix out.

@Starbuck5 Starbuck5 added sysfont pygame.sysfont bugfix PR that fixes bug labels Jun 24, 2023
@oddbookworm oddbookworm added this to the 2.3.1 milestone Jun 24, 2023
@oddbookworm oddbookworm merged commit f3997b3 into pygame-community:main Jun 24, 2023
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR that fixes bug sysfont pygame.sysfont
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants