mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 20:43:37 +01:00
fxconv: recognize the new line-distance param for fonts
This commit is contained in:
parent
92a95e0090
commit
1ceeabdc36
1 changed files with 4 additions and 1 deletions
|
@ -755,6 +755,9 @@ def convert_topti(input, params):
|
||||||
# Default character spacing to 1
|
# Default character spacing to 1
|
||||||
char_spacing = int(params.get("char-spacing", "1"))
|
char_spacing = int(params.get("char-spacing", "1"))
|
||||||
|
|
||||||
|
# Default line distance to line height + 1
|
||||||
|
line_distance = int(params.get("line-distance", line_height + 1))
|
||||||
|
|
||||||
#--
|
#--
|
||||||
# Encoding blocks
|
# Encoding blocks
|
||||||
#---
|
#---
|
||||||
|
@ -832,7 +835,7 @@ def convert_topti(input, params):
|
||||||
|
|
||||||
o += u8(flags) + u8(line_height) + u8(grid.h) + u8(len(blocks))
|
o += u8(flags) + u8(line_height) + u8(grid.h) + u8(len(blocks))
|
||||||
o += u32(glyph_count)
|
o += u32(glyph_count)
|
||||||
o += u8(char_spacing) + bytes(3)
|
o += u8(char_spacing) + u8(line_distance) + bytes(2)
|
||||||
o += ref(data_blocks)
|
o += ref(data_blocks)
|
||||||
o += ref(data_glyphs)
|
o += ref(data_glyphs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue