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

Support float font sizes #7107

Merged
merged 1 commit into from
Apr 29, 2023
Merged

Conversation

radarhere
Copy link
Member

Resolves #6689

Pillow calls FT_Set_Pixel_Sizes when loading a font. FT_Set_Pixel_Sizes takes FT_UInt as the width/height arguments, but then multiplies those integers by 64 before calling FT_Request_Size.

As suggested, this PR calls FT_Request_Size directly instead, allowing 64 times the control over font sizes.

@hugovk hugovk merged commit 139acc4 into python-pillow:main Apr 29, 2023
@radarhere radarhere deleted the float_font_sizes branch April 29, 2023 20:22
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.

Support float values for sizes in ImageFont.truetype
2 participants