Change font in text area

Description

I’m attempting to increase the font size in a text area for a password field

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

ESP32 with arduino IDE

What LVGL version are you using?

7.7.1

What do you want to achieve?

I would like the font size to be bigger

What have you tried so far?

Code to reproduce

    static lv_style_t style;
    lv_style_init(&style);
    lv_style_set_text_font(&style, LV_STATE_DEFAULT, LV_FONT_MONTSERRAT_28);
    lv_obj_add_style(pwd_ta, LV_OBJ_PART_MAIN, &style);

Screenshot and/or video

You can use style, first of all you must to enable the font in the lv_conf.h

#define LV_FONT_MONTSERRAT_28 1

After you can use the style:

static lv_style_t style;
lv_style_init(&style);
lv_style_set_text_font( &style, LV_STATE_DEFAULT, &lv_font_montserrat_28);

lv_obj_add_style(text_area, LV_DROPDOWN_PART_MAIN, &style);

It may not matter but you can try LV_TEXTAREA_PART_BG as the part.