Lines Matching refs:font
85 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
100 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_get_glyph_dsc_cb()
130 static const uint8_t * ttf_get_glyph_bitmap_cb(const lv_font_t * font, uint32_t unicode_letter) in ttf_get_glyph_bitmap_cb() argument
132 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in ttf_get_glyph_bitmap_cb()
149 cache_key.line_height = font->line_height; in ttf_get_glyph_bitmap_cb()
255 void lv_tiny_ttf_set_size(lv_font_t * font, lv_coord_t font_size) in lv_tiny_ttf_set_size() argument
261 ttf_font_desc_t * dsc = (ttf_font_desc_t *)font->dsc; in lv_tiny_ttf_set_size()
265 font->line_height = (lv_coord_t)(dsc->scale * (dsc->ascent - dsc->descent + line_gap)); in lv_tiny_ttf_set_size()
266 font->base_line = (lv_coord_t)(dsc->scale * (line_gap - dsc->descent)); in lv_tiny_ttf_set_size()
268 void lv_tiny_ttf_destroy(lv_font_t * font) in lv_tiny_ttf_destroy() argument
270 if(font != NULL) { in lv_tiny_ttf_destroy()
271 if(font->dsc != NULL) { in lv_tiny_ttf_destroy()
272 ttf_font_desc_t * ttf = (ttf_font_desc_t *)font->dsc; in lv_tiny_ttf_destroy()
281 TTF_FREE(font); in lv_tiny_ttf_destroy()