From c8a86a0df727db107bc0bc7a381c6fb648df81ed Mon Sep 17 00:00:00 2001 From: Jacques Supcik Date: Thu, 26 Oct 2023 16:09:55 +0200 Subject: [PATCH] fix --- font_to_py/alt_writer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/font_to_py/alt_writer.py b/font_to_py/alt_writer.py index 6fecc8a..be797ec 100755 --- a/font_to_py/alt_writer.py +++ b/font_to_py/alt_writer.py @@ -73,14 +73,14 @@ GET_CH_S_TPL = """def get_ch(self, ch): # Code emitted for horizontally mapped fonts. GET_CH_HMAP_TPL = """ next_offs = doff + 2 + ((width - 1)//8 + 1) * self.height - return _mvfont[doff + 2:next_offs], self.height, width + return self._font[doff + 2:next_offs], self.height, width """ # Code emitted for vertically mapped fonts. GET_CH_VMAP_TPL = """ next_offs = doff + 2 + ((self.height - 1)//8 + 1) * width - return _mvfont[doff + 2:next_offs], self.height, width + return self._font[doff + 2:next_offs], self.height, width """