This GitHub Action automates the generation of optimized C-source font files for the LVGL (Light and Versatile Graphics Library) ecosystem.
Manually managing font conversion for embedded UI projects can be tedious. This workflow streamlines the process by:
- Downloading the latest Montserrat TrueType font.
- Using
lv_font_convto convert fonts into C arrays. - Applying specific ranges and sizes (12, 16, 20, 30) for memory-efficient UI development.
- Artifacting the generated
.cfiles for immediate use in your firmware builds.
To use this in your own repository, copy the workflow YAML into your .github/workflows/ directory.
The workflow triggers on workflow_dispatch (manual) or whenever the workflow file itself is updated. You can customize the RANGE variable in the script to support specific character sets (e.g., Extended Latin or Symbols) required by your application.
- Built using lv_font_conv.
- Montserrat font provided by Julieta Ula.