How to set the text in the middle of the label in vertical direction

Description

I want to set the text in the middle of the label in vertical direction.
In my project, in list, sometiomes I need to add text, so I used lv_list_add_text(list, “TEXT”);
but sometimes, i want to add a bigger size of text, so i modify the library function, to set its height to 40
@YHH8`%X4%K5O7

but “TEXT” is always at the top of label

08QMNA3W$~`9JMQ$Y91N

I know lv_obj_set_style_text_align() is used to set text in the horizontal direction .
So how can i set the text in the middle in vertical direction

I have an idea. At first, create a box by lv_list_add_text, and then use the box as the parent object to create a label. So is there a better way to make it?
$)63`{7RFRE~S3NH_H)OEL

OJXKLV65URJ)C`4G2%3R4V3

What LVGL version are you using?

V8.1
Thanks for your help