We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833369f commit 07b8da7Copy full SHA for 07b8da7
InteractiveHtmlBom/core/fontparser.py
@@ -12,7 +12,10 @@ def parse_font_char(self, chr):
12
lines = []
13
line = []
14
glyph_x = 0
15
- glyph_str = NEWSTROKE_FONT[ord(chr) - ord(' ')]
+ index = ord(chr) - ord(' ')
16
+ if index >= len(NEWSTROKE_FONT):
17
+ index = ord('?') - ord(' ')
18
+ glyph_str = NEWSTROKE_FONT[index]
19
for i in range(0, len(glyph_str), 2):
20
coord = glyph_str[i:i + 2]
21
0 commit comments