Skip to content

Fixes getting the text dimensions (PIL textsize is deprecated)#43

Open
fjenett wants to merge 1 commit intogrenlayk:mainfrom
fjenett:fix-text-dimensions
Open

Fixes getting the text dimensions (PIL textsize is deprecated)#43
fjenett wants to merge 1 commit intogrenlayk:mainfrom
fjenett:fix-text-dimensions

Conversation

@fjenett
Copy link

@fjenett fjenett commented Feb 20, 2024

PIL has recently deprecated the textsize() method of ImageDraw.Draw … this adds a fix found on StackExchange (see source).

https://pillow.readthedocs.io/en/stable/deprecations.html#font-size-and-offset-methods

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.

1 participant