Secured the output for font in PythonExtra - WIP

This commit is contained in:
Sylvain PILLOT 2025-04-05 11:56:01 +02:00
parent bf21598ea6
commit 79d2fc63a4

View file

@ -814,14 +814,16 @@ def convert_topti(input, params):
l = [ "import gint\n",
f"{params['name']} = gint.font({flags}, ",
f"{line_height}, {grid.h}, {len(blocks)}, {glyph_count}, ",
f"{char_spacing}, ",
f"{char_spacing}, {line_distance}, ",
data_blocks,
", ",
data_glyphs ]
if proportional:
l += [data_index, data_width]
l += [f", {0}, {0}"]
l += [f", ", data_index, f", ", data_width]
else:
l += [f", {grid.w}, {(grid.w * grid.h + 31) >> 5}"]
l += [f", ", None, f", ", None]
return l + [")\n"]
# Base data: always put the raw data and blocks first since they are