RTL Drop down problem

Hello dear developers
I use lvgl v8.4.
Here is my code.

    lv_obj_t* dropd = lv_dropdown_create(lv_scr_act());
    lv_obj_center(dropd);
    lv_obj_set_size(dropd, 180, 40);
    lv_obj_set_style_base_dir(dropd, LV_BASE_DIR_RTL, 0);
    lv_obj_set_style_text_font(dropd, &lv_font_dejavu_16_persian_hebrew, 0);
    lv_dropdown_set_options(dropd, "English\n" "فارسی");

But what I get either in simulator or in my mcu is like this, what is the source of the problem?


Please help me

dropdown widget control has a bug! · Issue #7419 · lvgl/lvgl

You also need to set the lv_dropdown_get_list(dd) object font.

lv_obj_set_style_text_font(lv_dropdown_get_list(dd),font,LV_PART_MAIN);

Thank you,
My problem is solved.