Closed jdlcdl closed 12 months ago
The swap from getsize()
to getbbox()
looks guaranteed to be pixel-for-pixel identical, based on how Pillow implemented getbbox()
So I don't see any risks of unintended side effects to these changes.
Kind of a weird deprecation on their part, given that they're still using self.font.getsize()
under the hood even in the the main
branch.
Whoops, wait, we use FreeTypeFont
. A bit harder to decipher what it's doing w/the self.font.getsize()
data.
https://github.com/python-pillow/Pillow/blob/9.4.0/src/PIL/ImageFont.py#L181-L196
Im just now realizing that this pr is a duplicate of #485
Ooops... closed.
Description
Removes Pillow 10 deprecation warnings, seen since 9.4, when running screenshot generator.
This pull request is categorized as a:
Checklist
pytest
and made sure all unit tests pass before submitting the PRIf you modified or added functionality/workflow, did you add new unit tests?
I have tested this PR on the following platforms/os: