Skip to content

Instantly share code, notes, and snippets.

@kdmukai
Created January 6, 2026 14:58
Show Gist options
  • Select an option

  • Save kdmukai/0d698e891ddf543913ee76171b64f3b6 to your computer and use it in GitHub Desktop.

Select an option

Save kdmukai/0d698e891ddf543913ee76171b64f3b6 to your computer and use it in GitHub Desktop.
Converting fonts for lvgl

OTF fonts

OTFs have to be converted to TTF first.

see: https://convertio.co/otf-ttf/

TTF fonts

Use the official web-based converter: https://lvgl.io/tools/fontconverter

  • Bpp:

    • 1bpp: Takes up the least amount of space but has no antialiasing and will not look good in most cases.
    • 2bpp: Noticeable improvement but flaws are still visible (esp in SeedSigner button text).
    • 3bpp: Did not try
    • 4bpp: Strikes the right mix between size vs rendering quality.
  • Output format:

    • C file: for main / system fonts that will be compiled into the firmware.
    • Binary: For additional fonts (e.g. l10n) that may or may not be included at runtime.
  • Additional options checkboxes:

    • None selected.
  • Range:

    • Basic ASCII: 0x20-0x7f
    • SeedSigner icons: 0xe900-0xe923
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment