Unicode Fonts and Symbols as LVGL C-source code

Random Unicode Bitmap Characters

C-Source formats: LVGL B&W and 2,4,8 bpp Alpha level Anti-Alias.

Create C-source code pixel Unicode fonts directly.
Convert pictures and images to C-source code symbols.

Convert vector fonts to C-source code raster fonts



How the LVGL C-source C Format is organized

The glyph symbols and the Unicode code-points are stored together in one compressed file Name.h.

The Name of the file is the same as the name of the font so it has to be a valid C-source code name.

Here is a small test font with one and greek alpha and betha:

Test font with one and greek alpha and betha

The hexadecimal numbers above the symbols are Unicode code-points.

The pixel data i stored in a bit soup (not byte soup mind you) for each glyph in an static const uint8_t array.

The size and placement of the glyph bounding box is described in a static const lv_font_fmt_txt_glyph_dsc_t data structure.

Finally the Unicode code-points for each character is stored in a static const uint16_t array:

LVGL font format



Convert fonts and images to C-source code Fonts and Symbols as C-source code.

ROM Optimized Characters and Images Other Color Modes for Images and Fonts.

IconEdit font and symbol editor home IconEdit font and symbol editor home

Download the zip file for IconEdit Go to download of the IconEdit zip file.