From 9024b549a01cf57e6b33d019ca4d7437491d5ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Fri, 7 Aug 2020 00:03:43 +0200 Subject: [PATCH] Update fonttool.py in accordance with a30a1881ec76ad281470b7744452ec15cb07b9df --- fonttool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fonttool.py b/fonttool.py index 6242fafa0..dc5e24fee 100755 --- a/fonttool.py +++ b/fonttool.py @@ -47,7 +47,7 @@ class FontTool: data_ptr += math.ceil(self.code_points[cp][0] * FONT_HEIGHT / 4) + 1 font_ptrs_wrapped = [] for i in range(0, len(block), PTRS_PER_LINE): - font_ptrs_wrapped.append(', '.join([ '0x%04X' % v for v in block[i : (i + PTRS_PER_LINE)] ])) + font_ptrs_wrapped.append(', '.join([ '0x%08X' % v for v in block[i : (i + PTRS_PER_LINE)] ])) font_ptrs_blocks.append(',\n '.join(font_ptrs_wrapped)) font_cpp_data = re.sub(r'font_ptrs[^{]*{([^;]+);', 'font_ptrs[] = {\n ' + ',\n\n '.join(font_ptrs_blocks) + ',\n};', font_cpp_data) font_ranges_lines = [ '{ 0x%06X, 0x%06X },' % ( r[0], r[1] ) for r in new_ranges ]