Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'kerningScale' parameter excluded when using --format dump #92

Open
appletonbrian opened this issue Aug 12, 2023 · 0 comments
Open

'kerningScale' parameter excluded when using --format dump #92

appletonbrian opened this issue Aug 12, 2023 · 0 comments

Comments

@appletonbrian
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant