Skip to content

Conversation

@NeroBurner
Copy link
Contributor

@NeroBurner NeroBurner commented Feb 6, 2026

Recreate the NodeJS script lv_font_conv in Python as lv_font_conv.py using Pillow library

run in InfiniTime directory with:

python3 src/resources/lv_font_conv.py --size 200 --output "build/fonts/jetbrains_mono_bold_20_py.c" --bpp 1 --format lvgl --no-compress --font "src/displayapp/fonts/JetBrainsMono-Bold.ttf" --range "0x20-0x22" --range "0x50-0x55"

Currently not working as the created glyphs don't quite match the originial JS versions

Glyps 21 (!), 22 ", 50 P and 55 U from Python Script:

out_0_21_c out_0_22_m out_0_50_m out_0_55_m

Same glyps from JS:

out_js_u21 out_js_u22 out_js_u50 out_js_u55

@NeroBurner NeroBurner added needs more work This PR needs more work maintenance Background work labels Feb 6, 2026
@NeroBurner NeroBurner marked this pull request as draft February 6, 2026 07:21
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Build size and comparison to main:

Section Size Difference
text 385232B 0B
data 944B 0B
bss 22640B 0B

Run in InfiniEmu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Background work needs more work This PR needs more work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant