fix(examples): fix font manager example build error in docs (#7085)

Signed-off-by: lhdjply <lhdjply@126.com>
This commit is contained in:
Liu Yi
2024-10-16 16:27:13 +08:00
committed by GitHub
parent a286c7c306
commit 55876d4f1e

View File

@@ -38,4 +38,13 @@ void lv_example_font_manager_1(void)
lv_obj_center(label);
}
#else
void lv_example_font_manager_1(void)
{
lv_obj_t * label = lv_label_create(lv_screen_active());
lv_label_set_text(label, "FreeType or font_manager is not enabled");
lv_obj_center(label);
}
#endif