Lines Matching refs:font
21 lv_font_t font; member
30 static bool imgfont_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out,
57 lv_font_t * font = &dsc->font; in lv_imgfont_create() local
58 font->dsc = dsc; in lv_imgfont_create()
59 font->get_glyph_dsc = imgfont_get_glyph_dsc; in lv_imgfont_create()
60 font->get_glyph_bitmap = imgfont_get_glyph_bitmap; in lv_imgfont_create()
61 font->subpx = LV_FONT_SUBPX_NONE; in lv_imgfont_create()
62 font->line_height = height; in lv_imgfont_create()
63 font->base_line = 0; in lv_imgfont_create()
64 font->underline_position = 0; in lv_imgfont_create()
65 font->underline_thickness = 0; in lv_imgfont_create()
67 return font; in lv_imgfont_create()
70 void lv_imgfont_destroy(lv_font_t * font) in lv_imgfont_destroy() argument
72 LV_ASSERT_NULL(font); in lv_imgfont_destroy()
74 imgfont_dsc_t * dsc = (imgfont_dsc_t *)font->dsc; in lv_imgfont_destroy()
90 static bool imgfont_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, in imgfont_get_glyph_dsc() argument
93 LV_ASSERT_NULL(font); in imgfont_get_glyph_dsc()
95 imgfont_dsc_t * dsc = (imgfont_dsc_t *)font->dsc; in imgfont_get_glyph_dsc()
101 const void * img_src = dsc->path_cb(font, unicode, unicode_next, &offset_y, dsc->user_data); in imgfont_get_glyph_dsc()