mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 20:43:37 +01:00
fxconv: add character spacing in topti fonts
Adds a new parameter "char-spacing" (default: 1) to change character spacing for fonts rendered with topti.
This commit is contained in:
parent
74b0bfaba1
commit
e3af6a5d4b
1 changed files with 5 additions and 0 deletions
|
@ -511,6 +511,9 @@ def convert_topti(input, output, params, target):
|
||||||
# Default line height to glyph height
|
# Default line height to glyph height
|
||||||
line_height = params.get("height", grid.h)
|
line_height = params.get("height", grid.h)
|
||||||
|
|
||||||
|
# Default character spacing to 1
|
||||||
|
char_spacing = params.get("char-spacing", 1)
|
||||||
|
|
||||||
#--
|
#--
|
||||||
# Encoding blocks
|
# Encoding blocks
|
||||||
#---
|
#---
|
||||||
|
@ -606,6 +609,8 @@ def convert_topti(input, output, params, target):
|
||||||
.byte {grid.h}
|
.byte {grid.h}
|
||||||
.byte {len(blocks)}
|
.byte {len(blocks)}
|
||||||
.long {glyph_count}
|
.long {glyph_count}
|
||||||
|
.byte {char_spacing}
|
||||||
|
.zero 3
|
||||||
.long _{params["name"]}_data + {off_blocks}
|
.long _{params["name"]}_data + {off_blocks}
|
||||||
.long _{params["name"]}_data
|
.long _{params["name"]}_data
|
||||||
""" + assembly2
|
""" + assembly2
|
||||||
|
|
Loading…
Reference in a new issue