Home
last modified time | relevance | path

Searched refs:dsc_out (Results 1 – 8 of 8) sorted by relevance

/lvgl-3.7.0/src/font/
Dlv_font.c64 bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter, in lv_font_get_glyph_dsc() argument
69 LV_ASSERT_NULL(dsc_out); in lv_font_get_glyph_dsc()
77 dsc_out->resolved_font = NULL; in lv_font_get_glyph_dsc()
80 bool found = f->get_glyph_dsc(f, dsc_out, letter, letter_next); in lv_font_get_glyph_dsc()
82 if(!dsc_out->is_placeholder) { in lv_font_get_glyph_dsc()
83 dsc_out->resolved_font = f; in lv_font_get_glyph_dsc()
97 placeholder_font->get_glyph_dsc(placeholder_font, dsc_out, letter, letter_next); in lv_font_get_glyph_dsc()
98 dsc_out->resolved_font = placeholder_font; in lv_font_get_glyph_dsc()
106 dsc_out->box_w = 0; in lv_font_get_glyph_dsc()
107 dsc_out->adv_w = 0; in lv_font_get_glyph_dsc()
[all …]
Dlv_font_fmt_txt.c148 bool lv_font_get_glyph_dsc_fmt_txt(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t … in lv_font_get_glyph_dsc_fmt_txt() argument
179 dsc_out->adv_w = adv_w; in lv_font_get_glyph_dsc_fmt_txt()
180 dsc_out->box_h = gdsc->box_h; in lv_font_get_glyph_dsc_fmt_txt()
181 dsc_out->box_w = gdsc->box_w; in lv_font_get_glyph_dsc_fmt_txt()
182 dsc_out->ofs_x = gdsc->ofs_x; in lv_font_get_glyph_dsc_fmt_txt()
183 dsc_out->ofs_y = gdsc->ofs_y; in lv_font_get_glyph_dsc_fmt_txt()
184 dsc_out->bpp = (uint8_t)fdsc->bpp; in lv_font_get_glyph_dsc_fmt_txt()
185 dsc_out->is_placeholder = false; in lv_font_get_glyph_dsc_fmt_txt()
187 if(is_tab) dsc_out->box_w = dsc_out->box_w * 2; in lv_font_get_glyph_dsc_fmt_txt()
Dlv_font_fmt_txt.h220 bool lv_font_get_glyph_dsc_fmt_txt(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t …
Dlv_font.h107 bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter,
/lvgl-3.7.0/src/extra/libs/freetype/
Dlv_freetype.c206 FT_UInt glyph_index, lv_font_glyph_dsc_t * dsc_out) in get_bold_glyph() argument
224 dsc_out->adv_w = (face->glyph->metrics.horiAdvance >> 6); in get_bold_glyph()
225 dsc_out->box_h = face->glyph->bitmap.rows; /*Height of the bitmap in [px]*/ in get_bold_glyph()
226 dsc_out->box_w = face->glyph->bitmap.width; /*Width of the bitmap in [px]*/ in get_bold_glyph()
227 dsc_out->ofs_x = face->glyph->bitmap_left; /*X offset of the bitmap in [pf]*/ in get_bold_glyph()
228 dsc_out->ofs_y = face->glyph->bitmap_top - in get_bold_glyph()
230 dsc_out->bpp = 8; /*Bit per pixel: 1/2/4/8*/ in get_bold_glyph()
236 … lv_font_glyph_dsc_t * dsc_out, uint32_t unicode_letter, uint32_t unicode_letter_next) in get_glyph_dsc_cb_cache() argument
240 dsc_out->adv_w = 0; in get_glyph_dsc_cb_cache()
241 dsc_out->box_h = 0; in get_glyph_dsc_cb_cache()
[all …]
/lvgl-3.7.0/src/extra/others/imgfont/
Dlv_imgfont.c31 static bool imgfont_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out,
97 static bool imgfont_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, in imgfont_get_glyph_dsc() argument
115 dsc_out->is_placeholder = 0; in imgfont_get_glyph_dsc()
116 dsc_out->adv_w = header.w; in imgfont_get_glyph_dsc()
117 dsc_out->box_w = header.w; in imgfont_get_glyph_dsc()
118 dsc_out->box_h = header.h; in imgfont_get_glyph_dsc()
119 dsc_out->bpp = LV_IMGFONT_BPP; /* is image identifier */ in imgfont_get_glyph_dsc()
120 dsc_out->ofs_x = 0; in imgfont_get_glyph_dsc()
121 dsc_out->ofs_y = 0; in imgfont_get_glyph_dsc()
/lvgl-3.7.0/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.c85 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
91 dsc_out->box_w = 0; in ttf_get_glyph_dsc_cb()
92 dsc_out->adv_w = 0; in ttf_get_glyph_dsc_cb()
93 dsc_out->box_h = 0; /*height of the bitmap in [px]*/ in ttf_get_glyph_dsc_cb()
94 dsc_out->ofs_x = 0; /*X offset of the bitmap in [pf]*/ in ttf_get_glyph_dsc_cb()
95 dsc_out->ofs_y = 0; /*Y offset of the bitmap in [pf]*/ in ttf_get_glyph_dsc_cb()
96 dsc_out->bpp = 0; in ttf_get_glyph_dsc_cb()
97 dsc_out->is_placeholder = false; in ttf_get_glyph_dsc_cb()
116 dsc_out->adv_w = (uint16_t)floor((((float)advw + (float)k) * dsc->scale) + in ttf_get_glyph_dsc_cb()
119 dsc_out->adv_w = (uint16_t)floor((((float)advw + (float)k) * dsc->scale) + in ttf_get_glyph_dsc_cb()
[all …]
/lvgl-3.7.0/docs/overview/
Dfont.md220 * Store the result in `dsc_out`.
223 bool my_get_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t unicode_le…
230 dsc_out->adv_w = 12; /*Horizontal space required by the glyph in [px]*/
231 dsc_out->box_h = 8; /*Height of the bitmap in [px]*/
232 dsc_out->box_w = 6; /*Width of the bitmap in [px]*/
233 dsc_out->ofs_x = 0; /*X offset of the bitmap in [pf]*/
234 dsc_out->ofs_y = 3; /*Y offset of the bitmap measured from the as line*/
235 dsc_out->bpp = 2; /*Bits per pixel: 1/2/4/8*/