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:
Lephenixnoir 2020-10-05 16:12:34 +02:00
parent 74b0bfaba1
commit e3af6a5d4b
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 5 additions and 0 deletions

View File

@ -511,6 +511,9 @@ def convert_topti(input, output, params, target):
# Default line height to glyph height
line_height = params.get("height", grid.h)
# Default character spacing to 1
char_spacing = params.get("char-spacing", 1)
#--
# Encoding blocks
#---
@ -606,6 +609,8 @@ def convert_topti(input, output, params, target):
.byte {grid.h}
.byte {len(blocks)}
.long {glyph_count}
.byte {char_spacing}
.zero 3
.long _{params["name"]}_data + {off_blocks}
.long _{params["name"]}_data
""" + assembly2