Change Gui Guider font size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change Gui Guider font size

Jump to solution
1,663 Views
Johnny5
Contributor II

What is the proper #include for standard fonts in Gui Guider-1.8.1-GA?

This works in custom code.

    lv_obj_set_style_text_font(ui_Label_Timer, &lv_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);

But, changing font size results in a compilation failed.  This font has no issue in the UI editor.

    lv_obj_set_style_text_font(ui_Label_Timer, &lv_font_montserrat_24, LV_PART_MAIN | LV_STATE_DEFAULT);

0 Kudos
Reply
1 Solution
1,636 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Johnny5 

If you want to add lv_font_montserratMedium_12, 

Please declare in file gui_guider.h

Harry_Zhang_0-1734944098008.png

BR

Harry

View solution in original post

0 Kudos
Reply
1 Reply
1,637 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Johnny5 

If you want to add lv_font_montserratMedium_12, 

Please declare in file gui_guider.h

Harry_Zhang_0-1734944098008.png

BR

Harry

0 Kudos
Reply