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

Moved error from truetype() to FreeTypeFont #7587

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

radarhere
Copy link
Member

Follow up to #7584

Since ImageFont.truetype() really just constructs an ImageFont.FreeTypeFont instance, I think it makes sense to move the new ValueError from ImageFont.truetype() to ImageFont.FreeTypeFont, allowing ImageFont.FreeTypeFont to also have this validation.

@radarhere radarhere merged commit b51dcc0 into python-pillow:main Dec 4, 2023
56 checks passed
@radarhere radarhere deleted the freetypefont branch December 4, 2023 11:05
radarhere added a commit to radarhere/Pillow that referenced this pull request Dec 8, 2023
radarhere added a commit to radarhere/Pillow that referenced this pull request Dec 8, 2023
@radarhere radarhere mentioned this pull request Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants