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

Deprecated font.getsize() is replaced with font.getmask() #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gksriharsha
Copy link

Description

font.getsize() function was deprecated from v9 onwards. Since Pillow>=10, this function does not exist. Ubuntu 24.04 LTS supports python 3.12 which forces Pillow version upgrade to >10 . Therefore changed the deprecated functions to use the correct Pillow functions.

  • Related issues:
    • Encountered while working on my project

Changes in this PR

  • Refactored getsize() to use getmask() method

How has this been tested?

I have tested the new implementation for my project and it is working. I did not see any test cases that I update. Let me know if any other test cases need to be updated.

Updating pillow function usage as old functions are deprecated
Updating Pillow version number
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