diff --git a/apyx/__init__.py b/apyx/__init__.py index 886af59..02af08a 100644 --- a/apyx/__init__.py +++ b/apyx/__init__.py @@ -22,7 +22,7 @@ def create_antipixel(cfg): even_parts = [] for part in parts: - part['text_width'] = draw.textsize(part['text'], font=font)[0] + part['text_width'] = draw.textlength(part['text'], font=font) part_sizing = part.get('sizing', 'even') if part_sizing == 'even': ## Keep track as we'll need later..