diff --git a/src/lv_font/lv_font.h b/src/lv_font/lv_font.h index 557f81cc3..e639a54a3 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*/ - const void * dsc; /**< Store implementation specific data here*/ + 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 456f89c8b..6c637d7a3 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 const lv_font_fmt_txt_dsc_t font_dsc = { +static 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 07d5ecaf9..2f9c0b1cc 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 const lv_font_fmt_txt_dsc_t font_dsc = { +static 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 958826da8..61e0fec00 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 const lv_font_fmt_txt_dsc_t font_dsc = { +static 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 ecfba1900..8432a6fd4 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 const lv_font_fmt_txt_dsc_t font_dsc = { +static 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 6391cfca6..e86727cf9 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 const lv_font_fmt_txt_dsc_t font_dsc = { +static lv_font_fmt_txt_dsc_t font_dsc = { .glyph_bitmap = gylph_bitmap, .glyph_dsc = glyph_dsc, .cmaps = cmaps,