diff --git a/src/lv_font/lv_font.h b/src/lv_font/lv_font.h index e639a54a3..557f81cc3 100644 --- a/src/lv_font/lv_font.h +++ b/src/lv_font/lv_font.h @@ -65,7 +65,7 @@ typedef struct _lv_font_struct /*Pointer to the font in a font pack (must have the same line height)*/ uint8_t line_height; /**< The real line height where any text fits*/ uint8_t base_line; /**< Base line measured from the top of the line_height*/ - void * dsc; /**< Store implementation specific data here*/ + const void * dsc; /**< Store implementation specific data here*/ #if LV_USE_USER_DATA lv_font_user_data_t user_data; /**< Custom user data for font. */ #endif diff --git a/src/lv_font/lv_font_roboto_12.c b/src/lv_font/lv_font_roboto_12.c index 6c637d7a3..456f89c8b 100644 --- a/src/lv_font/lv_font_roboto_12.c +++ b/src/lv_font/lv_font_roboto_12.c @@ -1677,7 +1677,7 @@ static const lv_font_fmt_txt_kern_pair_t kern_pairs = *--------------------*/ /*Store all the custom data of the font*/ -static lv_font_fmt_txt_dsc_t font_dsc = { +static const lv_font_fmt_txt_dsc_t font_dsc = { .glyph_bitmap = gylph_bitmap, .glyph_dsc = glyph_dsc, .cmaps = cmaps, diff --git a/src/lv_font/lv_font_roboto_16.c b/src/lv_font/lv_font_roboto_16.c index 2f9c0b1cc..07d5ecaf9 100644 --- a/src/lv_font/lv_font_roboto_16.c +++ b/src/lv_font/lv_font_roboto_16.c @@ -2117,7 +2117,7 @@ static const lv_font_fmt_txt_kern_pair_t kern_pairs = *--------------------*/ /*Store all the custom data of the font*/ -static lv_font_fmt_txt_dsc_t font_dsc = { +static const lv_font_fmt_txt_dsc_t font_dsc = { .glyph_bitmap = gylph_bitmap, .glyph_dsc = glyph_dsc, .cmaps = cmaps, diff --git a/src/lv_font/lv_font_roboto_22.c b/src/lv_font/lv_font_roboto_22.c index 61e0fec00..958826da8 100644 --- a/src/lv_font/lv_font_roboto_22.c +++ b/src/lv_font/lv_font_roboto_22.c @@ -2993,7 +2993,7 @@ static const lv_font_fmt_txt_kern_pair_t kern_pairs = *--------------------*/ /*Store all the custom data of the font*/ -static lv_font_fmt_txt_dsc_t font_dsc = { +static const lv_font_fmt_txt_dsc_t font_dsc = { .glyph_bitmap = gylph_bitmap, .glyph_dsc = glyph_dsc, .cmaps = cmaps, diff --git a/src/lv_font/lv_font_roboto_28.c b/src/lv_font/lv_font_roboto_28.c index 8432a6fd4..ecfba1900 100644 --- a/src/lv_font/lv_font_roboto_28.c +++ b/src/lv_font/lv_font_roboto_28.c @@ -4068,7 +4068,7 @@ static const lv_font_fmt_txt_kern_pair_t kern_pairs = *--------------------*/ /*Store all the custom data of the font*/ -static lv_font_fmt_txt_dsc_t font_dsc = { +static const lv_font_fmt_txt_dsc_t font_dsc = { .glyph_bitmap = gylph_bitmap, .glyph_dsc = glyph_dsc, .cmaps = cmaps, diff --git a/src/lv_font/lv_font_unscii_8.c b/src/lv_font/lv_font_unscii_8.c index e86727cf9..6391cfca6 100644 --- a/src/lv_font/lv_font_unscii_8.c +++ b/src/lv_font/lv_font_unscii_8.c @@ -433,7 +433,7 @@ static const lv_font_fmt_txt_cmap_t cmaps[] = *--------------------*/ /*Store all the custom data of the font*/ -static lv_font_fmt_txt_dsc_t font_dsc = { +static const lv_font_fmt_txt_dsc_t font_dsc = { .glyph_bitmap = gylph_bitmap, .glyph_dsc = glyph_dsc, .cmaps = cmaps,