Skip to content

Conversation

@radarhere
Copy link
Member

Alternative to #9185

Rather than duplicating

font.getbbox("ABC")
font.getmask("test text")
with Image.new(mode="RGBA", size=(200, 200)) as im:
draw = ImageDraw.Draw(im)
draw.multiline_textbbox((10, 10), "ABC\nAaaa", font, stroke_width=2)
draw.text((10, 10), "Test Text", font=font, fill="#000")

at
# from fuzzers.fuzz_font
font.getbbox("ABC")
font.getmask("test text")

this suggests just importing it.

The downside is that this requires renaming Tests/oss-fuzz to Tests/oss_fuzz, and this would temporarily break fuzzing until a PR is created and merged at https://github.com/google/oss-fuzz

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