From 0749a98dadf637ab692e096df75fe3876c328baa Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Mon, 3 Jul 2023 09:07:15 +0100 Subject: [PATCH] Updated to work with Python 3 and Pillow --- apyx/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..