How to set Text size

Hi, I created a simple GUI with a text area and a keyboard… and I want to make the Text size bigger … How can I manage text size ?

This is one way of doing it,

    lv_obj_t * pTa = lv_ta_create( lv_scr_act(), NULL );

    static lv_style_t st;
    lv_style_copy( &st, &lv_style_plain );
    st.text.font = &lv_font_roboto_22;
    lv_obj_set_style( pTa, &st );

Another option is to change the default font in lv_conf.h, but that affects all objects.

@deonm Thanks !

1 Like