/******************************************************************************* * Size: 10 px * Bpp: 8 * Opts: --bpp 8 --size 10 --font D:/Users/Desktop/rusefi_dash5-minimal/assets/Fussion-3zgAz.ttf -o D:/Users/Desktop/rusefi_dash5-minimal/assets\ui_font_FontIndicatorLabel.c --format lvgl --symbols 0123456789efh-. --no-compress --no-prefilter ******************************************************************************/ #include "ui.h" #ifndef UI_FONT_FONTINDICATORLABEL #define UI_FONT_FONTINDICATORLABEL 1 #endif #if UI_FONT_FONTINDICATORLABEL /*----------------- * BITMAPS *----------------*/ /*Store the image of the glyphs*/ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = { /* U+002D "-" */ 0x77, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0x1d, 0xd, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x2, /* U+002E "." */ 0x31, 0x64, 0x52, 0x7f, 0xff, 0xd3, /* U+0030 "0" */ 0x0, 0x1a, 0xdc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8b, 0x14, 0xd5, 0xff, 0x69, 0xc, 0xc, 0xc, 0xa2, 0xff, 0xc8, 0x7a, 0xff, 0xd2, 0x0, 0x0, 0x0, 0x0, 0x8c, 0xff, 0xc8, 0x7d, 0xff, 0xd0, 0x0, 0x0, 0x0, 0x0, 0x8c, 0xff, 0xc8, 0x80, 0xff, 0xd0, 0x0, 0x0, 0x0, 0x0, 0x8c, 0xff, 0xc8, 0x80, 0xff, 0xdf, 0xf, 0xc, 0xc, 0x11, 0xc5, 0xff, 0xb3, 0x47, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd7, 0x15, /* U+0031 "1" */ 0x7f, 0xff, 0xff, 0xd9, 0xc, 0x5, 0x46, 0xff, 0xff, 0x24, 0x0, 0x2c, 0xff, 0xff, 0x24, 0x0, 0x2d, 0xff, 0xff, 0x24, 0x0, 0x30, 0xff, 0xff, 0x24, 0x0, 0x30, 0xff, 0xff, 0x24, 0x0, 0x2f, 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0x0, 0x15, 0xd9, 0xff, 0xb2, 0x0, 0x0, 0x0, 0x0, 0xf, 0xce, 0xff, 0xd8, 0x16, 0x0, 0x0, 0x0, 0x9, 0xc2, 0xff, 0xe0, 0x1d, 0x0, 0x0, 0x0, 0x5, 0xb5, 0xff, 0xe7, 0x24, 0x0, 0x0, 0x0, 0x0, 0xa7, 0xff, 0xec, 0x2c, 0x0, 0x0, 0x0, /* U+0038 "8" */ 0x0, 0x7d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea, 0x27, 0x0, 0x42, 0xff, 0xfe, 0x47, 0xc, 0xc, 0xd, 0xaa, 0xff, 0xd6, 0x0, 0x58, 0xff, 0xfa, 0x9, 0x0, 0x0, 0x0, 0x6e, 0xff, 0xec, 0x0, 0x39, 0xff, 0xff, 0xf4, 0xf0, 0xf0, 0xf0, 0xfb, 0xff, 0xcf, 0x0, 0x7d, 0xff, 0xe1, 0x23, 0x20, 0x20, 0x20, 0x63, 0xff, 0xff, 0x16, 0x71, 0xff, 0xed, 0x28, 0xc, 0xc, 0xc, 0x7d, 0xff, 0xf6, 0xf, 0x4, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0x44, 0x0, /* U+0039 "9" */ 0x1, 0xa1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd5, 0x14, 0x6a, 0xff, 0xf0, 0x29, 0x8, 0x8, 0xe, 0xc8, 0xff, 0xb0, 0x80, 0xff, 0xd9, 0x0, 0x0, 0x0, 0x0, 0x8c, 0xff, 0xc4, 0x56, 0xff, 0xff, 0xf1, 0xf0, 0xf0, 0xf0, 0xf9, 0xff, 0xc4, 0x0, 0x1c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x9b, 0xff, 0xc4, 0x2, 0x10, 0x10, 0x10, 0x10, 0x10, 0x15, 0xc5, 0xff, 0xb0, 0x2b, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd5, 0x14, /* U+0065 "e" */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, 0xff, 0xc4, 0x80, 0xff, 0xd0, 0x0, 0x0, 0x0, 0x0, 0x8c, 0xff, 0xc4, 0x70, 0xff, 0xcf, 0x0, 0x0, 0x0, 0x0, 0x8b, 0xff, 0xb5 }; /*--------------------- * GLYPH DESCRIPTION *--------------------*/ static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = { {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */, {.bitmap_index = 0, .adv_w = 106, .box_w = 7, .box_h = 2, .ofs_x = 0, .ofs_y = 2}, {.bitmap_index = 14, .adv_w = 53, .box_w = 3, .box_h = 2, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 20, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 90, .adv_w = 74, .box_w = 5, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 125, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 195, .adv_w = 159, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 265, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 335, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 405, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 475, .adv_w = 148, .box_w = 9, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 538, .adv_w = 169, .box_w = 11, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 615, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 685, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 755, .adv_w = 154, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0}, {.bitmap_index = 825, .adv_w = 164, .box_w = 10, .box_h = 7, .ofs_x = 0, .ofs_y = 0} }; /*--------------------- * CHARACTER MAPPING *--------------------*/ static const uint16_t unicode_list_0[] = { 0x0, 0x1, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0x38, 0x39, 0x3b }; /*Collect the unicode lists and glyph_id offsets*/ static const lv_font_fmt_txt_cmap_t cmaps[] = { { .range_start = 45, .range_length = 60, .glyph_id_start = 1, .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 15, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY } }; /*----------------- * KERNING *----------------*/ /*Map glyph_ids to kern left classes*/ static const uint8_t kern_left_class_mapping[] = { 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 3, 8, 0, 9, 10 }; /*Map glyph_ids to kern right classes*/ static const uint8_t kern_right_class_mapping[] = { 0, 0, 0, 1, 2, 3, 4, 5, 6, 1, 7, 8, 9, 10, 11, 12 }; /*Kern values between classes*/ static const int8_t kern_class_values[] = { -1, 0, -2, -3, -3, -1, -6, -2, -2, 0, 0, 0, -3, -7, 0, -6, -6, -3, -8, -5, -3, 0, 0, 0, -2, -7, -3, 0, -4, -3, -8, -3, -3, 0, 0, 0, -1, -5, -2, -3, 0, -1, -6, -2, -2, 0, 0, 0, -2, -7, -4, -6, -4, 0, -8, -3, -6, 0, 0, 0, -2, -7, -4, -6, -4, -6, -8, -3, -6, 0, 0, 0, -6, -6, -7, -6, -8, -3, 0, -6, -4, 0, 0, 0, -1, -7, -3, -6, -3, -2, -8, -2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -11, -11, -5, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0 }; /*Collect the kern class' data in one place*/ static const lv_font_fmt_txt_kern_classes_t kern_classes = { .class_pair_values = kern_class_values, .left_class_mapping = kern_left_class_mapping, .right_class_mapping = kern_right_class_mapping, .left_class_cnt = 10, .right_class_cnt = 12, }; /*-------------------- * ALL CUSTOM DATA *--------------------*/ #if LVGL_VERSION_MAJOR == 8 /*Store all the custom data of the font*/ static lv_font_fmt_txt_glyph_cache_t cache; #endif #if LVGL_VERSION_MAJOR >= 8 static const lv_font_fmt_txt_dsc_t font_dsc = { #else static lv_font_fmt_txt_dsc_t font_dsc = { #endif .glyph_bitmap = glyph_bitmap, .glyph_dsc = glyph_dsc, .cmaps = cmaps, .kern_dsc = &kern_classes, .kern_scale = 16, .cmap_num = 1, .bpp = 8, .kern_classes = 1, .bitmap_format = 0, #if LVGL_VERSION_MAJOR == 8 .cache = &cache #endif }; /*----------------- * PUBLIC FONT *----------------*/ /*Initialize a public general font descriptor*/ #if LVGL_VERSION_MAJOR >= 8 const lv_font_t ui_font_FontIndicatorLabel = { #else lv_font_t ui_font_FontIndicatorLabel = { #endif .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 = 7, /*The maximum line height required by the font*/ .base_line = 0, /*Baseline measured from the bottom of the line*/ #if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0) .subpx = LV_FONT_SUBPX_NONE, #endif #if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8 .underline_position = 0, .underline_thickness = 0, #endif .dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */ #if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9 .fallback = NULL, #endif .user_data = NULL, }; #endif /*#if UI_FONT_FONTINDICATORLABEL*/