mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
add built in fonts
This commit is contained in:
parent
e8c14961df
commit
c54d2d2fd7
@ -94,7 +94,7 @@ void lv_style_init(void)
|
||||
lv_style_scr.text.color = lv_color_make(0x30, 0x30, 0x30);
|
||||
lv_style_scr.text.sel_color = lv_color_make(0x55, 0x96, 0xd8);
|
||||
lv_style_scr.text.font = LV_FONT_DEFAULT;
|
||||
lv_style_scr.text.letter_space = 2;
|
||||
lv_style_scr.text.letter_space = 0;
|
||||
lv_style_scr.text.line_space = 2;
|
||||
|
||||
lv_style_scr.image.opa = LV_OPA_COVER;
|
||||
|
@ -250,7 +250,7 @@ void lv_draw_letter(const lv_point_t * pos_p, const lv_area_t * mask_p, const lv
|
||||
bool g_ret = lv_font_get_glyph_dsc(font_p, &g, letter, '\0');
|
||||
if(g_ret == false) return;
|
||||
|
||||
lv_coord_t pos_x = pos_p->x;
|
||||
lv_coord_t pos_x = pos_p->x + g.ofs_x;
|
||||
lv_coord_t pos_y = pos_p->y + (font_p->line_height - font_p->base_line) - g.box_h - g.ofs_y;
|
||||
|
||||
const uint8_t * bpp_opa_table;
|
||||
|
1771
src/lv_fonts/lv_font_roboto_12.c
Normal file
1771
src/lv_fonts/lv_font_roboto_12.c
Normal file
File diff suppressed because it is too large
Load Diff
2233
src/lv_fonts/lv_font_roboto_16.c
Normal file
2233
src/lv_fonts/lv_font_roboto_16.c
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
3144
src/lv_fonts/lv_font_roboto_22.c
Normal file
3144
src/lv_fonts/lv_font_roboto_22.c
Normal file
File diff suppressed because it is too large
Load Diff
4294
src/lv_fonts/lv_font_roboto_28.c
Normal file
4294
src/lv_fonts/lv_font_roboto_28.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -122,7 +122,7 @@ typedef struct {
|
||||
const void * glyph_ids;
|
||||
const int8_t * values;
|
||||
uint32_t pair_cnt :24;
|
||||
uint32_t glyph_ids_size :2; /*1: `glyph_ids` is stored as `uint8_t`; 2: as `uint16_t`*/
|
||||
uint32_t glyph_ids_size :2; /*0: `glyph_ids` is stored as `uint8_t`; 1: as `uint16_t`*/
|
||||
}lv_font_fmt_txt_kern_pair_t;
|
||||
|
||||
/*More complex but more optimal class based kern value storage*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user