Online Font Converter V 5.3
Convert TTF and WOFF fonts to C array
Convert TTF and WOFF fonts to C array
With this free online font converter tool you can create C array from any TTF font. You can select a range of Unicode characters and speficy the bpp (bit-per-pixel).
The font converter is designed to be compitible with LittlevGL but with minor modification you can make it compatible with other graphics libraries.
How to use the font converter?
- Choose a TTF font
- Give name to the output font. E.g. "arial_40"
- Specify the height in px
- Set the bpp (bit-per-piel). Higher value results smoother (anti-aliased) font
- Set a range of Unicode character to include in your font
- Opitonally pick some character from the Range to include only them. Useful for Asian fonts where characters are "sparse"
- Use the Built-in option to include all bpp and add a #if USE_FONT_NAME
- Click the Convert button and result file will start to download.
How to use the generated fonts in LittlevGL?
- Copy the result C file into your LittlevGL project
- In a C file of your application declare the font as: extern lv_font_t my_font_name; or simply LV_FONT_DECLARE(my_font_name);
- Set the font in a style: style.text.font = &my_font_name;
Useful notes
- Unicode table to pick letters to the List: https://unicode-table.com/
- Unicode ranges http://jrgraphix.net/research/unicode.php
- 7 px hight pixel font Syncronizer: Download or visit its Website.
- 8 px hight pixel font Unscii: Download (modifed) or visit its Website.
- Symbol font FontAwesome: Download or visit its Website.
- List of built-in symbols: (Range: 61440 .. 62190)




 - To learn more about the font handling of LittelvGL read this Guide
- To use the Fonts without LittlevGL copy the required parts of lv_font.c and lv_font.h