mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2025-05-22 09:19:17 +02:00
Secured the output for font in PythonExtra - WIP
This commit is contained in:
parent
bf21598ea6
commit
79d2fc63a4
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue