lvfontio – Core font related data structures for LVGL
Note
This module is intended only for low-level usage with LVGL.
Available on these boards
- class lvfontio.OnDiskFont(file_path: str, max_glyphs: int = 100)
A font built into CircuitPython for use with LVGL.
There is an in-browser converter here: https://lvgl.io/tools/fontconverter
The format is documented here: https://github.com/lvgl/lv_font_conv/tree/master/doc
Create a OnDiskFont by loading an LVGL font file from the filesystem.
- Parameters:
- bitmap: displayio.Bitmap
Bitmap containing all font glyphs starting with ASCII and followed by unicode. This is useful for use with LVGL.