Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some more hints regarding text alignment
  • Loading branch information
Klaus Thoden committed Nov 22, 2017
1 parent 3ee9834 commit 90dc24b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mkimage.py
Expand Up @@ -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))

Expand Down

0 comments on commit 90dc24b

Please sign in to comment.