diff --git a/mkimage.py b/mkimage.py index 779ea37..829bde0 100644 --- a/mkimage.py +++ b/mkimage.py @@ -138,6 +138,12 @@ def centered(textstring, font_spec): # get length of each line for centering # determine lineskip # return result + # + # or try and do that using multiline: + # https://pillow.readthedocs.io/en/3.3.x/reference/ImageDraw.html?highlight=multiline_text#PIL.ImageDraw.PIL.ImageDraw.Draw.multiline_text + # https://github.com/python-pillow/Pillow/issues/2067 + # https://docs.python.org/3.3/library/textwrap.html?highlight=textwrap#module-textwrap + tmp_draw = ImageDraw.Draw(Image.new("RGB", DIMENSIONS, BACKGROUND))