Skip to content

Moved error from truetype() to FreeTypeFont#7587

Merged
radarhere merged 1 commit intopython-pillow:mainfrom
radarhere:freetypefont
Dec 4, 2023
Merged

Moved error from truetype() to FreeTypeFont#7587
radarhere merged 1 commit intopython-pillow:mainfrom
radarhere:freetypefont

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
@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

2 participants