Cosmetics
This commit is contained in:
@@ -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
@@ -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)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user