-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
Drawing multiline text currently draws a single vertical line of overlapping characters. I'm not sure how/if this can be fixed within the existing API since it is not clear whether ttb lines should advance to the left or the right.
What did you do?
from PIL import ImageFont, ImageDraw, Image
im = Image.new("RGB", (200, 200), "white")
draw = ImageDraw.Draw(im)
font = ImageFont.truetype("Tests/fonts/DejaVuSans.ttf", 24)
dram.text((100, 10), "abc\n123\nXYZ", "black", font, direction="ttb")
im.show()What actually happened?
Before #4930 (master):
With #4930:
ValueError: ttb direction is unsupported for multiline text
