LVGL sample code to change font
LVGL sample code to change font
I'm hoping somebody can post a very simple example of how to change the font size in the ESP32 port of the LVGL library (LVGL V8).
Re: LVGL sample code to change font
Code: Select all
static lv_style_t style;
lv_style_init(&style);
lv_style_set_text_font(&style, &lv_font_montserrat_10); // <--- you have to enable other font sizes in menuconfig
lv_obj_add_style(obj, &style, 0); // <--- obj is the label
Re: LVGL sample code to change font
Thank you so much!!
Who is online
Users browsing this forum: No registered users and 20 guests