Roboto 22 and 28 font problem


I will use roboto 22 and roboto 28 font style. But I’m getting some errors.

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

System workbench for stm32, Nucleo F446

What do you want to achieve?

I want to use roboto 22 font style.

What have you tried so far?

I can compile the software with roboto 16 font style.

Code to reproduce


/* Robot fonts with bpp = 4
 *  */
#define LV_FONT_ROBOTO_12    1
#define LV_FONT_ROBOTO_16    1
#define LV_FONT_ROBOTO_22    1
#define LV_FONT_ROBOTO_28    1

/*Pixel perfect monospace font
 * */
#define LV_FONT_UNSCII_8     0

/* Optionally declare your custom fonts here.
 * You can use these fonts as default font too
 * and they will be available globally. E.g.
 *                                LV_FONT_DECLARE(my_font_2)

/*Always set a default font from the built-in fonts*/
#define LV_FONT_DEFAULT        &lv_font_roboto_16

Screenshot and/or video

Have you rebuilt the library (make clean/rebuild all/ or equivalent in your IDE)?