How to set μg/m³ with lv_font_montserrat


I want to set μg / m³ in a label, but I can’t find in lv_font_montserrat how to set μ and ³. Is it possible to customize the font and add these characters ? How can I do it? Thanks in advance.

What MCU/Processor/Board and compiler are you using?

ESP32 with arduinoIDE

What LVGL version are you using?


What do you want to achieve?

Display the characters on the label

What have you tried so far?

Set in the code

Code to reproduce

sprintf(pm10C, "%.1f μg/m³" , pm10F);

Thanks in advace.

1 Like

You probably have to create your own custom font. LVGL actually has an online font converter that you can use to create your own font, with whatever characters you need

is it possible to add only the symbols μg/m³ in hex to the font lv_montserrat? How can I do? Thanks


You should use a custom font with your special characters and either load it dynamically (runtime), or include & compile with your source code (.bin -> .h conversion needed)

Please see my comment where to find free fonts, check the glyphs (characters) inside font files (point 3), and how to generate “LVGL-compatible” .bin files:

Best regards,

1 Like