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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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