Cosmetics

This commit is contained in:
Bertrand Songis
2019-12-09 16:37:45 +01:00
parent 45a75c1c2b
commit e2939aae82
4 changed files with 18 additions and 23 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class FontBitmap:
offset = self.font_size % 2
image.paste(self.extra_bitmap.copy(), (width, offset))
elif c == " ":
pass
width += 4
elif c in special_chars["cn"]:
width += self.draw_char(image, width, c, self.cjk_font)
else:
+1 -1
View File
@@ -5,7 +5,7 @@
import os
standard_chars = "!#$%&'()*+,-./0123456789:;<=>?°ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz~|≥"
standard_chars = """ !"#$%&'()*+,-./0123456789:;<=>?°ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz~|≥"""
extra_chars = "".join([chr(0x10000+i) for i in range(21)])