Label doesn't show full text in LVGL v6

I have got a weird issue with the label text. If set the “Hello World”, the label shows only “Hello”.
For the “Hello_World”, shows “Hello_”,
For the “HelloWorld”, is okay.

The code is simple, I am using ZephyrRTOS v2.3, so it uses LVGL v6.

    lv_obj_t *label = lv_label_create(lv_scr_act(), NULL);
    lv_label_set_static_text(label, "Hello World");

What am I missing?

Is it the same with lv_label_set_text?

Sorry for the late reply. @kisvegabor

Yes, it’s the same and so weird.
What do you recommend?

Try changing LV_TXT_LINE_BREAK_LONG_LEN to 0 in lv_conf.h. It’s been a while, but if I recall correctly, this option was disabled by default in v7 due to issues like this.

1 Like

i tryed with version 6.1.2 and there is no problem, i see the correct text.

It has fixed by LVGL_TEXT_BREAK_CHARACTERS="". The default value was " ,.;:-_".
Thank you for the tip, @embeddedt and all