Migrating from 7.5 to 8.1 - Table font size change

Description

I would lie to have n+1 rows in a table to be a smaller font than the header

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

Simulator

What LVGL version are you using?

8.1

What do you want to achieve?

Make the non-header rows a smaller font

What have you tried so far?

Reviewed Table (lv_table) — LVGL documentation

Code to reproduce

    lv_obj_set_style_text_font(calendartable, &lv_font_montserrat_24, 0);
    lv_obj_add_event_cb(sensorTable, draw_part_calendar_event_cb, LV_EVENT_DRAW_PART_BEGIN, NULL);


static void draw_part_calendar_event_cb(lv_event_t * e)
{
    lv_obj_t * obj = lv_event_get_target(e);
    lv_obj_draw_part_dsc_t * dsc = lv_event_get_param(e);
    /*If the cells are drawn...*/
    if(dsc->part == LV_PART_ITEMS) {
        uint32_t row = dsc->id /  lv_table_get_col_cnt(obj);
        uint32_t col = dsc->id - row * lv_table_get_col_cnt(obj);

        if(row > 1) {
            //dsc->label_dsc-> ???
        }

    }
}```

## Screenshot and/or video

@kisvegabor any suggestions?

Thanks

Adding this to the event works for me:

        if(row > 0) {
            dsc->label_dsc->font = &lv_font_montserrat_10;
        }

Awesome! Thanks :slight_smile: