diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-30 22:34:04 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-30 22:34:04 (GMT) |
| commit | 3c68c2cf9187d15ed8e1b07cde00792056a4d0a1 (patch) | |
| tree | 6574e2739d62ec96918ea6c2a0aff8921a1494af | |
| parent | 477fda322ec2ccdb4aaefbc07309df95479f542c (diff) | |
Digression: non-const fonts; compiled image has same size has before so there is no potential advantage
| -rw-r--r-- | src/displayapp/fonts/lv_font_sys_48.c | 2 | ||||
| -rw-r--r-- | src/displayapp/fonts/neofont.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/fonts/lv_font_sys_48.c b/src/displayapp/fonts/lv_font_sys_48.c index dfde9ab..bfc0a15 100644 --- a/src/displayapp/fonts/lv_font_sys_48.c +++ b/src/displayapp/fonts/lv_font_sys_48.c @@ -299,7 +299,7 @@ static lv_font_fmt_txt_dsc_t font_dsc = { *----------------*/ /*Initialize a public general font descriptor*/ -const lv_font_t lv_font_sys_48 = { +lv_font_t lv_font_sys_48 = { .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/ .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/ .line_height = 46, /*The maximum line height required by the font*/ diff --git a/src/displayapp/fonts/neofont.c b/src/displayapp/fonts/neofont.c index cfc8e72..7a2f89c 100644 --- a/src/displayapp/fonts/neofont.c +++ b/src/displayapp/fonts/neofont.c @@ -420,7 +420,7 @@ static const uint8_t * neofont15_glyph_bitmap_cb(const lv_font_t * font, uint32_ } /*Describe the properties of a font*/ -const lv_font_t neofont15 = { +lv_font_t neofont15 = { .get_glyph_dsc = neofont15_glyph_dsc_cb, /*Set a callback to get info about gylphs*/ .get_glyph_bitmap = neofont15_glyph_bitmap_cb, /*Set a callback to get bitmap of a glyp*/ .line_height = 18, /*The real line height where any text fits*/ |
