font8x14: Store font as strings instead of as bytearray

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-02-27 13:24:50 -05:00
parent af882ee0fe
commit e504147285
3 changed files with 259 additions and 258 deletions

View File

@@ -19,7 +19,8 @@ class DisplayBase:
self.all_framebuffers = [(self.vram[i], bytearray('~'*128), i)
for i in range(8)]
# Cache fonts and icons in display byte order
self.font = [self._swizzle_bits(c) for c in font8x14.VGA_FONT]
self.font = [self._swizzle_bits(bytearray(c))
for c in font8x14.VGA_FONT]
self.icons = {}
for name, icon in icons.Icons16x16.items():
top1, bot1 = self._swizzle_bits([d >> 8 for d in icon])