Handle request to render zerowidth text more gracefully
This commit is contained in:
parent
27a1f27e59
commit
96f85b187e
1 changed files with 2 additions and 0 deletions
|
|
@ -167,6 +167,8 @@ def missing_glyph(num_cells, cell_width, cell_height):
|
|||
|
||||
def render_cell(text=' ', bold=False, italic=False):
|
||||
num_cells = wcwidth(text[0])
|
||||
if num_cells < 1:
|
||||
return render_cell()
|
||||
|
||||
def safe_freetype(func):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue