Labels appearing vertical

Hi,
I’m having an issue with labels being created vertically instead of horizontal. I can create other objects just fine, such as a keyboard or button. Am I missing something here? It seems that in all the example code I’ve seen, label orientation is horizontal by default.

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

Texas Instruments TMS320F28335 DSP.

What do you experience?

I create the label object, set the text, and center align it. The label appears in the center of the screen as expected but the orientation is vertical.

What do you expect?

A horizontally placed label.

Code to reproduce

/*Create a screen*/
lv_obj_t * scr = lv_obj_create(NULL, NULL);

lv_obj_t * label = lv_label_create(scr, NULL);
lv_label_set_text(label, "HELLO");
lv_obj_align(label, NULL, LV_ALIGN_CENTER, 0, 0);

lv_scr_load(scr);          /*Load the screen*/

Screenshot and/or video

guiBufTest

Try loading the screen first and then creating the label.

I tried what you recommended but the issue is still there.

Issue was resolved, it was a problem on my end. The macro LV_COORD_MAX was overflowing and so I changed the type of lv_coord_t in the config file to int32_t and now it seems to work fine. Thank you!