diff --git a/ox/image.py b/ox/image.py index dc3e334..5b76042 100644 --- a/ox/image.py +++ b/ox/image.py @@ -174,7 +174,7 @@ def wrapText(text, max_width, max_lines, font_file, font_size): return min_width def get_width(string): - return textsize(draw, text, font)[0] + return textsize(draw, string, font)[0] image = Image.new('RGB', (1, 1)) draw = ImageDraw.Draw(image)