From e3af6a5d4b2e20e5dd75a7f813839e68f2fdcc54 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Mon, 5 Oct 2020 16:12:34 +0200 Subject: [PATCH] fxconv: add character spacing in topti fonts Adds a new parameter "char-spacing" (default: 1) to change character spacing for fonts rendered with topti. --- fxconv/fxconv.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index 913fc0f..755ea96 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -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