Lines Matching refs:font

88 static bool ttf_get_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t un…
91 static void ttf_release_glyph_cb(const lv_font_t * font, lv_font_glyph_dsc_t * g_dsc);
123 void lv_tiny_ttf_set_size(lv_font_t * font, int32_t font_size) in lv_tiny_ttf_set_size() argument
129 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in lv_tiny_ttf_set_size()
133 font->line_height = (int32_t)(dsc->scale * (dsc->ascent - dsc->descent + line_gap)); in lv_tiny_ttf_set_size()
134 font->base_line = (int32_t)(dsc->scale * (line_gap - dsc->descent)); in lv_tiny_ttf_set_size()
151 void lv_tiny_ttf_destroy(lv_font_t * font) in lv_tiny_ttf_destroy() argument
153 LV_ASSERT_NULL(font); in lv_tiny_ttf_destroy()
155 if(font->dsc != NULL) { in lv_tiny_ttf_destroy()
156 ttf_font_desc_t * ttf = (ttf_font_desc_t *)font->dsc; in lv_tiny_ttf_destroy()
165 font->dsc = NULL; in lv_tiny_ttf_destroy()
168 lv_free(font); in lv_tiny_ttf_destroy()
206 static bool ttf_get_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t un… in ttf_get_glyph_dsc_cb() argument
222 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_get_glyph_dsc_cb()
239 if(font->kerning == LV_FONT_KERNING_NORMAL && in ttf_get_glyph_dsc_cb()
262 if(font->kerning == LV_FONT_KERNING_NORMAL && in ttf_get_glyph_dsc_cb()
293 const lv_font_t * font = g_dsc->resolved_font; in ttf_get_glyph_bitmap_cb() local
294 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_get_glyph_bitmap_cb()
297 .size = font->line_height, in ttf_get_glyph_bitmap_cb()
300 …entry_t * entry = lv_cache_acquire_or_create(dsc->draw_data_cache, &search_key, (void *)font->dsc); in ttf_get_glyph_bitmap_cb()
303 if(tiny_ttf_draw_data_cache_create_cb(&search_key, (void *)font->dsc)) { in ttf_get_glyph_bitmap_cb()
321 static void ttf_release_glyph_cb(const lv_font_t * font, lv_font_glyph_dsc_t * g_dsc) in ttf_release_glyph_cb() argument
323 LV_ASSERT_NULL(font); in ttf_release_glyph_cb()
325 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_release_glyph_cb()