docstring -> typing

This commit is contained in:
klemek
2020-04-27 14:32:54 +02:00
parent de22001504
commit f7ac7bc5ee
3 changed files with 59 additions and 147 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ def fit_text(size, text):
k = 0 # number of lines
while k == 0 or (t is not None and text_size[0] >= max_width):
k += 1
t = utils.break_text(text.text, k)
t = utils.justify_text(text.text, k)
if t is not None:
text_size = font.getsize_multiline(t, stroke_width=text.stroke_width * font_size)
if t is None: