summaryrefslogtreecommitdiff
path: root/helper_libs
diff options
context:
space:
mode:
Diffstat (limited to 'helper_libs')
-rw-r--r--helper_libs/image_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper_libs/image_utils.py b/helper_libs/image_utils.py
index 501b6d0..349088b 100644
--- a/helper_libs/image_utils.py
+++ b/helper_libs/image_utils.py
@@ -65,7 +65,7 @@ class ImageText(object):
def get_text_size(self, font_filename, font_size, text):
font = ImageFont.truetype(font_filename, font_size)
- return font.getsize(text)
+ return font.getbbox(text)[2:4]
def write_text_box(self, coords, text, box_width, font_filename,
font_size=11, color=(0, 0, 0), place='left',