Skip to content

Conversation

@radarhere
Copy link
Member

A minor cleanup.

At the moment, getmask2 passes mode to the C method font_render, which determines if the image should be RGBA or L, and then passes that final mode back to Python.

The C method font_render doesn't change the value of the mode variable passed into it though, so rather than passing an extra piece of information back to Python, the mode can just be set in the Python layer.

@hugovk hugovk merged commit b638d05 into python-pillow:main Dec 21, 2023
@radarhere radarhere deleted the imagefont branch December 21, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants