From 1bd864cc15ad526922cc4530e96304ad08b7a607 Mon Sep 17 00:00:00 2001 From: iperov Date: Fri, 5 Apr 2019 21:42:10 +0400 Subject: [PATCH] fix imagelib\text.py --- imagelib/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagelib/text.py b/imagelib/text.py index 8c31e2e..2659db2 100644 --- a/imagelib/text.py +++ b/imagelib/text.py @@ -43,7 +43,7 @@ def draw_text( image, rect, text, color=(1,1,1), border=0.2, font=None): t = np.clip (t, 0, h-1) b = np.clip (b, 0, h-1) - image[t:b, l:r] += get_text_image ( (r-l,b-t,c) , text, color, border, font ) + image[t:b, l:r] += get_text_image ( (b-t,r-l,c) , text, color, border, font ) def draw_text_lines (image, rect, text_lines, color=(1,1,1), border=0.2, font=None):