Character misalignment in calendar

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

hardware: esp32 arduino
simulator: pc_simulator_win_codeblocks

What do you experience?

Character misalignment in calendar
week and days

What do you expect?

days and weeks are centrally aligned

Code to reproduce

Add a code snippet to reproduce the issue in the simulator. It should contain only the relevant code which can be compiled. Bug reports without code snippets or with erroneous code snippets will not be reviewed.

Use the ```c and ``` tags to format your code:

        lv_obj_t *calendar = lv_calendar_create(lv_disp_get_scr_act(NULL),NULL);
        lv_obj_align(calendar, NULL, LV_ALIGN_IN_BOTTOM_MID, 0, 0);

        static lv_style_t style;
        style.text.font = &lv_font_roboto_12;
        lv_calendar_set_style(calendar, LV_CALENDAR_STYLE_DAY_NAMES, &style);
        lv_calendar_set_style(calendar, LV_CALENDAR_STYLE_HEADER, &style);
        lv_calendar_set_style(calendar, LV_CALENDAR_STYLE_HEADER_PR, &style);
        lv_calendar_set_style(calendar, LV_CALENDAR_STYLE_BG, &style);

         static lv_style_t style_today;
        style_today.text.font = &lv_font_roboto_16;
        lv_calendar_set_style(calendar, LV_CALENDAR_STYLE_HIGHLIGHTED_DAYS, &style_today);

        static lv_style_t style_inactive;
        style_inactive.text.font = &lv_font_unscii_8;        
        lv_calendar_set_style(calendar, LV_CALENDAR_STYLE_INACTIVE_DAYS, &style_inactive);

        /*Set the today*/
        lv_calendar_date_t today;
        today.year = 2018;
        today.month = 10; = 23;

        lv_calendar_set_today_date(calendar, &today);
        lv_calendar_set_showed_date(calendar, &today);

        /*Highlight some days*/
        static lv_calendar_date_t highlihted_days[3];       /*Only it's pointer will be saved so should be static*/
        highlihted_days[0].year = 2018;
        highlihted_days[0].month = 10;
        highlihted_days[0].day = 6;

        highlihted_days[1].year = 2018;
        highlihted_days[1].month = 10;
        highlihted_days[1].day = 11;

        highlihted_days[2].year = 2018;
        highlihted_days[2].month = 11;
        highlihted_days[2].day = 22;

        lv_calendar_set_highlighted_dates(calendar, highlihted_days, 3);

Screenshot and/or video

If possible, add screenshots and/or videos about the current issue.


Thank you for the new highlighting. Now I understand the issue. The headers on top are not lining up with the days.

Please check if the issue is resolved in the latest master commit; I have added a fix and the issue is gone on my end.

This problem has been solved. Thank you very much.