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

Check text is either string or bytes #8308

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

radarhere
Copy link
Member

Resolves #8307

When #8141 added support for bytes in FreeTypeFont, it presumed that the text would be either a string or bytes.

This raises an error if neither are the case.

@hugovk hugovk merged commit 06a9fcb into python-pillow:main Sep 4, 2024
51 of 52 checks passed
@radarhere radarhere deleted the bytes branch September 4, 2024 21:19
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.

Crash when using Draw.text with invalid type
2 participants