wttrin_png.py: fixed bug

This commit is contained in:
Igor Chubin 2018-11-02 18:15:59 +01:00
parent 632a4169c5
commit 9f0f9baa32

View file

@ -143,9 +143,10 @@ def gen_term(filename, buf, options=None):
(x_pos+CHAR_WIDTH, y_pos+CHAR_HEIGHT)),
fill=color_mapping(char.bg))
if char.data:
cat = script_category(char.data)
if cat not in font:
print "Unknown font category: %s" % cat
log("Unknown font category: %s" % cat)
draw.text(
(x_pos, y_pos),
char.data,