Whether my background is set to white or black, the content marked by the tag cannot be displayed, and freetype has not taken effect
static void show_ft_text();
static void show_ft_text()
{
/FreeType uses C standard file system, so no driver letter is required./
ft_infos.name = “/spiffs/Lato-Regular.ttf”;
ft_infos.weight = 14;
ft_infos.style = FT_FONT_STYLE_NORMAL;
ft_infos.mem = NULL;
if (!lv_ft_font_init(&ft_infos))
{
Serial.println(“create failed.”);
}
/Create style with the new font/
static lv_style_t style;
lv_style_init(&style);
lv_style_set_text_font(&style, ft_infos.font);
lv_style_set_text_color(&style, lv_color_white());
lv_style_set_text_align(&style, LV_TEXT_ALIGN_CENTER);
/Create a label with the new style/
lv_obj_t *label = lv_label_create(fuc_cont);
lv_obj_add_style(label, &style, 0);
lv_label_set_text(label, “ABCDEFGHI”);
}