Skip to content

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
@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