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

Control Board: Pillow 10 compatible font size calculation #1399

Closed
rdmark opened this issue Dec 18, 2023 · 1 comment
Closed

Control Board: Pillow 10 compatible font size calculation #1399

rdmark opened this issue Dec 18, 2023 · 1 comment
Assignees

Comments

@rdmark
Copy link
Member

rdmark commented Dec 18, 2023

Pillow v10 deprecated the getsize() class method for the FreeTypeFont class. The control board client relies on this for caluclating offsets of text to draw on the screen.

Instead we have the getlengh() and getbbox() class methods, so the code has to be refactored.

As context: We were forced to upgrade from Pillow v9 to v10 due to "security" patching (dependabot).

@rdmark
Copy link
Member Author

rdmark commented Dec 18, 2023

This should do it: #1400

@rdmark rdmark closed this as completed Dec 18, 2023
@rdmark rdmark self-assigned this Mar 22, 2024
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

No branches or pull requests

1 participant