/* Generic glyph width get function used in 'font->get_bitmap' when the font NOT contains all characters in the range (sparse)  */
int16_t lv_font_get_width_sparse(const lv_font_t *font, uint32_t unicode_letter)
/* Generic glyph width get function used in 'font->get_bitmap' when the font NOT contains all characters in the range (sparse)  */
int16_t lv_font_get_width_sparse(const lv_font_t *font, uint32_t unicode_letter)
{
    if(unicode_letter < font->unicode_first || unicode_letter > font->unicode_last) return -1;
    uint32_t i;
    for(i = 0; font->unicode_list[i] != 0; i++) {
        if(font->unicode_list[i] == unicode_letter) {
            return font->glyph_dsc[i].w_px;
        }
    }
    return -1;
}