Open Amethyst0710 opened 2 years ago
when using text_frame.fit_text('Arial', max_size=18) it crushed, the log for this part is as follows.
text_frame.fit_text('Arial', max_size=18)
And I enter in the line here text, remainder = self._break_line(line_source, point_size), find the problem is in find_max(),
text, remainder = self._break_line(line_source, point_size)
It thinks this will return a object has this two attribute text, remainder , but when it returned None, this line will crush.
text, remainder
What is the size of the textbox and what text are you trying to fit into it? Also, in future, please post traceback as text and code as links to locations in this repo to ease navigating to it.
when using
text_frame.fit_text('Arial', max_size=18)
it crushed, the log for this part is as follows.And I enter in the line here
text, remainder = self._break_line(line_source, point_size)
, find the problem is in find_max(),It thinks this will return a object has this two attribute
text, remainder
, but when it returned None, this line will crush.