Fonts can be converted from the operation system fonts and added to the Littlev Graphics Library it two steps:
The required softwares are located at lv_utils/font_conv
To learn how the fonts work in LittlevGL, please check this font overview
Firstly with BMFont software an .fnt file has to be created from the chosen system font:
A python script (fnt2c.py) will convert the .fnt and .png files to .c file. It works like this:
The paramters of the script:
(The script is a modified version of Lars Ole Pontoppidan’s script.)
LittlevGL - Open-source Embedded GUI Library
LittlevGL is a free and open-source graphics library providing everything you need to create embedded GUI with easy-to-use graphical elements, beautiful visual effects and low memory footprint.
If you like LittlevGL, please
support its deveopment!
The founder of Littlev Graphics Library (LittlevGL) and related software modules is:
All Rights Reserved © 2018 Hungary