Skip to content

Added abstract BaseImageFont class#9595

Open
radarhere wants to merge 1 commit intopython-pillow:mainfrom
radarhere:baseimagefont
Open

Added abstract BaseImageFont class#9595
radarhere wants to merge 1 commit intopython-pillow:mainfrom
radarhere:baseimagefont

Conversation

@radarhere
Copy link
Copy Markdown
Member

imageFont's ImageFont, FreeTypeFont and TransposedFont are all possible classes that can be used in ImageDraw or ImageText, and all share getbbox(), getmask() and getlength().

Let's formalize this by actually making them all inherit from a common class. For want of a better idea, I've named this BaseImageFont.

@radarhere radarhere force-pushed the baseimagefont branch 2 times, most recently from 20300a3 to 2a6350e Compare April 29, 2026 03:50
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