lv_font_conv icon indicating copy to clipboard operation
lv_font_conv copied to clipboard

'kerningScale' parameter excluded when using --format dump

Open appletonbrian opened this issue 10 months ago • 0 comments

I generated a dump output using the following command: lv_font_conv --no-compress --no-prefilter --bpp 4 --size 20 --font BELL.TTF -r 0x20-0x7F --format dump -o font_test_dump --force-fast-kern-format

And got the following for my font_info.json file: font_info.txt

This file contains kerning data for each character, but omits the kerningScale parameter, which is necessary to render text with kerning. The binary output format does not make this omission.

This is important to me because I am directly using the output from the --format dump option to create custom *.c files that I will deploy to an embedded target. I went down this path because I found it far easier to read a JSON file than to build a reader for the binary output format. Now, my only recourse is to build a (partial) reader for the binary output format just so I can recover kerningScale. I would suggest that all information in the binary output formal also be made available in the dump output format.

appletonbrian avatar Aug 12 '23 18:08 appletonbrian