From 9d44728da81e7d56ea5f437845d8d48bc278b086 Mon Sep 17 00:00:00 2001 From: Wei Shengyu Date: Fri, 2 Jul 2021 10:38:04 +0800 Subject: [PATCH] dbg (#3236) --- StyleText/engine/text_drawers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StyleText/engine/text_drawers.py b/StyleText/engine/text_drawers.py index aeec75c3..20375c13 100644 --- a/StyleText/engine/text_drawers.py +++ b/StyleText/engine/text_drawers.py @@ -66,6 +66,7 @@ class StdTextDrawer(object): corpus_list.append(corpus[0:i]) text_input_list.append(text_input) corpus = corpus[i:] + i = 0 break draw.text((char_x, 2), char_i, fill=(0, 0, 0), font=font) char_x += char_size @@ -78,7 +79,6 @@ class StdTextDrawer(object): corpus_list.append(corpus[0:i]) text_input_list.append(text_input) - corpus = corpus[i:] break return corpus_list, text_input_list