Online Font Converter
Convert TTF and WOFF fonts to C array

Use your operation system fonts in your embedded GUI too. LVGL applies UTF-8 encoding to display Unicode characters on any language. Here you can generate a new font for your GUI project.

shape image

With this free online font converter tool you can create C array from any TTF or WOFF font. You can select ranges of Unicode characters and speficy the bpp (bit-per-pixel).

The font converter is designed to be compatible with LVGL but with minor modification you can make it compatible with other graphics libraries too.

The offline version of the converter is available here

How to use the font converter?

  1. Give name to the output font. E.g. "arial_40"
  2. Specify the height in px
  3. Set the bpp (bit-per-piel). Higher value results smoother (anti-aliased) font
  4. Choose a TTF or WOFF font
  5. Set a range of Unicode character to include in your font or list the characters in the Symbols field
  6. Optionally choose and other font too and specify the ranges and/or symbols for it as well. The characters will be merged into the final C file.
  7. Click the Convert button to download the result C file.

How to use the generated fonts in LittlevGL?

  1. Copy the result C file into your LittlevGL project
  2. 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);
  3. Set the font in a style: style.text.font = &my_font_name;

You can use both "Range" and "Symbols" or only one of them

Old version for v5.3

Useful notes

  • Unicode table to pick letters:
  • Unicode ranges
  • A pixel perefect fonts: Terminus.
  • List of built-in symbols Use this FontAwesme symbol font and copy this list to Range:
  • To learn more about the font handling of LVGL read this Guide
  • To use the Fonts without LVGL you need lv_font.c/h, lv_font_fmt_txt.c/h from here.

Subscribe to Newsletters

Subscribe to our newsletters to no miss any news about LVGL. We will send maximum 1-2 mails/month.

Contact with us

Do you have any question? Have a great idea? Want to leave feedback?

We are keen on to hear about you! Just fill the form to contact with us.

Reach us quickly
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.