fix(gui): add degree symbol '°' to all fonts

This commit is contained in:
gagarinlg
2022-09-25 18:59:34 +02:00
parent 78e99311c8
commit 30c54b48c9
10 changed files with 2693 additions and 2553 deletions
+95 -83
View File
@@ -1,7 +1,7 @@
/*******************************************************************************
* Size: 24 px
* Bpp: 4
* Opts: --no-prefilter --bpp 4 --size 24 --font ../Roboto/Roboto-Regular.ttf -r 0x20-0x7F,0xC0-0xFF --format lvgl -o lv_font_roboto_24.c --force-fast-kern-format
* Opts: --no-prefilter --bpp 4 --size 24 --font ../Roboto/Roboto-Regular.ttf -r 0x20-0x7F,0xB0,0xC0-0xFF --format lvgl -o lv_font_roboto_24.c --force-fast-kern-format
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
@@ -1077,6 +1077,11 @@ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
0x48, 0xd, 0xfa, 0xab, 0xe4, 0x2, 0x4e, 0xff,
0xd8, 0x9, 0x28, 0x1, 0x8a, 0xbf, 0xd2, 0x20,
/* U+00B0 "°" */
0x3, 0xcf, 0xc2, 0x1, 0xed, 0x8d, 0xe1, 0x5f,
0x20, 0x1f, 0x56, 0xf1, 0x1, 0xf5, 0x1e, 0xd8,
0xde, 0x10, 0x3c, 0xfc, 0x30,
/* U+00C0 "À" */
0x0, 0xcb, 0xfe, 0x20, 0xf, 0xfe, 0xb, 0xfe,
0x0, 0x7f, 0xf0, 0xa7, 0xdc, 0x3, 0xff, 0x84,
@@ -2068,70 +2073,71 @@ static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 6472, .adv_w = 94, .box_w = 2, .box_h = 21, .ofs_x = 2, .ofs_y = -4},
{.bitmap_index = 6493, .adv_w = 130, .box_w = 8, .box_h = 24, .ofs_x = 0, .ofs_y = -5},
{.bitmap_index = 6568, .adv_w = 261, .box_w = 14, .box_h = 5, .ofs_x = 1, .ofs_y = 5},
{.bitmap_index = 6600, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6715, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6830, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6948, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7066, .adv_w = 251, .box_w = 16, .box_h = 21, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7181, .adv_w = 251, .box_w = 16, .box_h = 23, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7302, .adv_w = 359, .box_w = 24, .box_h = 17, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 7424, .adv_w = 250, .box_w = 14, .box_h = 22, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 7534, .adv_w = 218, .box_w = 12, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7614, .adv_w = 218, .box_w = 12, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7693, .adv_w = 218, .box_w = 12, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7777, .adv_w = 218, .box_w = 12, .box_h = 21, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7859, .adv_w = 104, .box_w = 6, .box_h = 22, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 7918, .adv_w = 104, .box_w = 5, .box_h = 22, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 7974, .adv_w = 104, .box_w = 8, .box_h = 22, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 8043, .adv_w = 104, .box_w = 9, .box_h = 21, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 8113, .adv_w = 257, .box_w = 15, .box_h = 17, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 8216, .adv_w = 274, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8356, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8475, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8592, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8713, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8831, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8949, .adv_w = 205, .box_w = 11, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 9005, .adv_w = 264, .box_w = 15, .box_h = 19, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 9129, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9234, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9340, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9450, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9558, .adv_w = 231, .box_w = 15, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 9669, .adv_w = 227, .box_w = 13, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9752, .adv_w = 228, .box_w = 13, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9858, .adv_w = 209, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9939, .adv_w = 209, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10021, .adv_w = 209, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10106, .adv_w = 209, .box_w = 11, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10193, .adv_w = 209, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10277, .adv_w = 209, .box_w = 11, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10361, .adv_w = 324, .box_w = 20, .box_h = 13, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 10472, .adv_w = 201, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 10551, .adv_w = 203, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10628, .adv_w = 203, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10706, .adv_w = 203, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10787, .adv_w = 203, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10867, .adv_w = 95, .box_w = 6, .box_h = 18, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 10917, .adv_w = 95, .box_w = 6, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10967, .adv_w = 95, .box_w = 8, .box_h = 18, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 11025, .adv_w = 95, .box_w = 8, .box_h = 17, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 11080, .adv_w = 225, .box_w = 12, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11178, .adv_w = 212, .box_w = 11, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11264, .adv_w = 219, .box_w = 12, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11349, .adv_w = 219, .box_w = 12, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11434, .adv_w = 219, .box_w = 12, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11522, .adv_w = 219, .box_w = 12, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11613, .adv_w = 219, .box_w = 12, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11700, .adv_w = 219, .box_w = 13, .box_h = 12, .ofs_x = 0, .ofs_y = 2},
{.bitmap_index = 11737, .adv_w = 218, .box_w = 12, .box_h = 17, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 11829, .adv_w = 212, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11908, .adv_w = 212, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11987, .adv_w = 212, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 12069, .adv_w = 212, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 12150, .adv_w = 182, .box_w = 12, .box_h = 23, .ofs_x = 0, .ofs_y = -5},
{.bitmap_index = 12250, .adv_w = 221, .box_w = 12, .box_h = 23, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 12357, .adv_w = 182, .box_w = 12, .box_h = 22, .ofs_x = 0, .ofs_y = -5}
{.bitmap_index = 6600, .adv_w = 143, .box_w = 7, .box_h = 6, .ofs_x = 1, .ofs_y = 11},
{.bitmap_index = 6621, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6736, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6851, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 6969, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7087, .adv_w = 251, .box_w = 16, .box_h = 21, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7202, .adv_w = 251, .box_w = 16, .box_h = 23, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 7323, .adv_w = 359, .box_w = 24, .box_h = 17, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 7445, .adv_w = 250, .box_w = 14, .box_h = 22, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 7555, .adv_w = 218, .box_w = 12, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7635, .adv_w = 218, .box_w = 12, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7714, .adv_w = 218, .box_w = 12, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7798, .adv_w = 218, .box_w = 12, .box_h = 21, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 7880, .adv_w = 104, .box_w = 6, .box_h = 22, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 7939, .adv_w = 104, .box_w = 5, .box_h = 22, .ofs_x = 2, .ofs_y = 0},
{.bitmap_index = 7995, .adv_w = 104, .box_w = 8, .box_h = 22, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 8064, .adv_w = 104, .box_w = 9, .box_h = 21, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 8134, .adv_w = 257, .box_w = 15, .box_h = 17, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 8237, .adv_w = 274, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8377, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8496, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8613, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8734, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8852, .adv_w = 264, .box_w = 15, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 8970, .adv_w = 205, .box_w = 11, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 9026, .adv_w = 264, .box_w = 15, .box_h = 19, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 9150, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9255, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9361, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9471, .adv_w = 249, .box_w = 13, .box_h = 22, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9579, .adv_w = 231, .box_w = 15, .box_h = 22, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 9690, .adv_w = 227, .box_w = 13, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9773, .adv_w = 228, .box_w = 13, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9879, .adv_w = 209, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 9960, .adv_w = 209, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10042, .adv_w = 209, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10127, .adv_w = 209, .box_w = 11, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10214, .adv_w = 209, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10298, .adv_w = 209, .box_w = 11, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10382, .adv_w = 324, .box_w = 20, .box_h = 13, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 10493, .adv_w = 201, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 10572, .adv_w = 203, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10649, .adv_w = 203, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10727, .adv_w = 203, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10808, .adv_w = 203, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10888, .adv_w = 95, .box_w = 6, .box_h = 18, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 10938, .adv_w = 95, .box_w = 6, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 10988, .adv_w = 95, .box_w = 8, .box_h = 18, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 11046, .adv_w = 95, .box_w = 8, .box_h = 17, .ofs_x = -1, .ofs_y = 0},
{.bitmap_index = 11101, .adv_w = 225, .box_w = 12, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11199, .adv_w = 212, .box_w = 11, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11285, .adv_w = 219, .box_w = 12, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11370, .adv_w = 219, .box_w = 12, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11455, .adv_w = 219, .box_w = 12, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11543, .adv_w = 219, .box_w = 12, .box_h = 19, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11634, .adv_w = 219, .box_w = 12, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11721, .adv_w = 219, .box_w = 13, .box_h = 12, .ofs_x = 0, .ofs_y = 2},
{.bitmap_index = 11758, .adv_w = 218, .box_w = 12, .box_h = 17, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 11850, .adv_w = 212, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 11929, .adv_w = 212, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 12008, .adv_w = 212, .box_w = 11, .box_h = 18, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 12090, .adv_w = 212, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 12171, .adv_w = 182, .box_w = 12, .box_h = 23, .ofs_x = 0, .ofs_y = -5},
{.bitmap_index = 12271, .adv_w = 221, .box_w = 12, .box_h = 23, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 12378, .adv_w = 182, .box_w = 12, .box_h = 22, .ofs_x = 0, .ofs_y = -5}
};
/*---------------------
@@ -2148,7 +2154,11 @@ static const lv_font_fmt_txt_cmap_t cmaps[] =
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
},
{
.range_start = 192, .range_length = 64, .glyph_id_start = 96,
.range_start = 176, .range_length = 1, .glyph_id_start = 96,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
},
{
.range_start = 192, .range_length = 64, .glyph_id_start = 97,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
@@ -2173,14 +2183,15 @@ static const uint8_t kern_left_class_mapping[] =
0, 31, 0, 0, 32, 0, 31, 31,
33, 27, 0, 34, 0, 35, 0, 36,
37, 38, 36, 39, 40, 0, 0, 0,
6, 6, 6, 6, 6, 6, 0, 8,
10, 10, 10, 10, 12, 12, 12, 12,
9, 12, 9, 9, 9, 9, 9, 0,
0, 13, 13, 13, 13, 23, 0, 0,
26, 26, 26, 26, 26, 26, 0, 28,
29, 29, 29, 29, 0, 0, 0, 0,
0, 31, 33, 33, 33, 33, 33, 0,
0, 0, 0, 0, 0, 36, 27, 36
0, 6, 6, 6, 6, 6, 6, 0,
8, 10, 10, 10, 10, 12, 12, 12,
12, 9, 12, 9, 9, 9, 9, 9,
0, 0, 13, 13, 13, 13, 23, 0,
0, 26, 26, 26, 26, 26, 26, 0,
28, 29, 29, 29, 29, 0, 0, 0,
0, 0, 31, 33, 33, 33, 33, 33,
0, 0, 0, 0, 0, 0, 36, 27,
36
};
/*Map glyph_ids to kern right classes*/
@@ -2198,14 +2209,15 @@ static const uint8_t kern_right_class_mapping[] =
23, 0, 0, 0, 0, 0, 25, 25,
26, 25, 23, 27, 28, 29, 30, 31,
32, 33, 31, 34, 0, 0, 35, 0,
10, 10, 10, 10, 10, 10, 36, 11,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 11, 11, 11, 11, 11, 0,
11, 15, 15, 15, 15, 19, 0, 0,
22, 22, 22, 22, 22, 22, 37, 23,
23, 23, 23, 23, 0, 0, 0, 0,
0, 25, 26, 26, 26, 26, 26, 0,
38, 30, 30, 30, 30, 31, 0, 31
0, 10, 10, 10, 10, 10, 10, 36,
11, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 11, 11, 11, 11, 11,
0, 11, 15, 15, 15, 15, 19, 0,
0, 22, 22, 22, 22, 22, 22, 37,
23, 23, 23, 23, 23, 0, 0, 0,
0, 0, 25, 26, 26, 26, 26, 26,
0, 38, 30, 30, 30, 30, 31, 0,
31
};
/*Kern values between classes*/
@@ -2430,7 +2442,7 @@ static lv_font_fmt_txt_dsc_t font_dsc = {
.cmaps = cmaps,
.kern_dsc = &kern_classes,
.kern_scale = 16,
.cmap_num = 2,
.cmap_num = 3,
.bpp = 4,
.kern_classes = 1,
.bitmap_format = 2,