wttrin_png.py: fixed bug
This commit is contained in:
parent
632a4169c5
commit
9f0f9baa32
1 changed files with 9 additions and 8 deletions
|
|
@ -143,9 +143,10 @@ def gen_term(filename, buf, options=None):
|
||||||
(x_pos+CHAR_WIDTH, y_pos+CHAR_HEIGHT)),
|
(x_pos+CHAR_WIDTH, y_pos+CHAR_HEIGHT)),
|
||||||
fill=color_mapping(char.bg))
|
fill=color_mapping(char.bg))
|
||||||
|
|
||||||
|
if char.data:
|
||||||
cat = script_category(char.data)
|
cat = script_category(char.data)
|
||||||
if cat not in font:
|
if cat not in font:
|
||||||
print "Unknown font category: %s" % cat
|
log("Unknown font category: %s" % cat)
|
||||||
draw.text(
|
draw.text(
|
||||||
(x_pos, y_pos),
|
(x_pos, y_pos),
|
||||||
char.data,
|
char.data,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue