fix get_width
This commit is contained in:
parent
d5635508bb
commit
dd130004ee
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ def wrapText(text, max_width, max_lines, font_file, font_size):
|
||||||
return min_width
|
return min_width
|
||||||
|
|
||||||
def get_width(string):
|
def get_width(string):
|
||||||
return textsize(draw, text, font)[0]
|
return textsize(draw, string, font)[0]
|
||||||
|
|
||||||
image = Image.new('RGB', (1, 1))
|
image = Image.new('RGB', (1, 1))
|
||||||
draw = ImageDraw.Draw(image)
|
draw = ImageDraw.Draw(image)
|
||||||
|
|
Loading…
Reference in a new issue