Lines Matching refs:loca_count
315 … uint32_t start, uint32_t * glyph_offset, uint32_t loca_count, font_header_bin_t * header) in load_glyph() argument
323 … lv_malloc(loca_count * sizeof(lv_font_fmt_txt_glyph_dsc_t)); in load_glyph()
325 lv_memset(glyph_dsc, 0, loca_count * sizeof(lv_font_fmt_txt_glyph_dsc_t)); in load_glyph()
331 for(unsigned int i = 0; i < loca_count; ++i) { in load_glyph()
376 int next_offset = (i < loca_count - 1) ? glyph_offset[i + 1] : (uint32_t)glyph_length; in load_glyph()
399 for(unsigned int i = 1; i < loca_count; ++i) { in load_glyph()
417 int next_offset = (i < loca_count - 1) ? glyph_offset[i + 1] : (uint32_t)glyph_length; in load_glyph()
505 uint32_t loca_count; in lvgl_load_font() local
506 if(lv_fs_read(fp, &loca_count, sizeof(uint32_t), NULL) != LV_FS_RES_OK) { in lvgl_load_font()
511 uint32_t * glyph_offset = lv_malloc(sizeof(uint32_t) * (loca_count + 1)); in lvgl_load_font()
514 for(unsigned int i = 0; i < loca_count; ++i) { in lvgl_load_font()
524 if(lv_fs_read(fp, glyph_offset, loca_count * sizeof(uint32_t), NULL) != LV_FS_RES_OK) { in lvgl_load_font()
541 fp, font_dsc, glyph_start, glyph_offset, loca_count, &font_header); in lvgl_load_font()