1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

font: add const to lv_font_fmt_txt_dsc_t

This commit is contained in:
Gabor Kiss-Vamosi 2019-07-29 15:09:21 +02:00
parent f5dca830c4
commit 8361a9c23d
6 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,