NerdNos-Firmware/lib/hansolov2/fonts/ui_font_calculator24.c

566 lines
20 KiB
C
Raw Normal View History

2024-03-19 15:46:02 +01:00
/*******************************************************************************
* Size: 24 px
* Bpp: 1
* Opts: --bpp 1 --size 24 --font /home/valerio/SquareLine/assets/Calculator.ttf -o /home/valerio/SquareLine/assets/ui_font_calculator24.c --format lvgl -r 0x20-0x7f --no-compress --no-prefilter
******************************************************************************/
#include "../ui.h"
#ifndef UI_FONT_CALCULATOR24
#define UI_FONT_CALCULATOR24 1
#endif
#if UI_FONT_CALCULATOR24
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+0020 " " */
0x0,
/* U+0021 "!" */
0xfd, 0xfa,
/* U+0022 "\"" */
0xb6, 0xd0,
/* U+0023 "#" */
0x8, 0x40, 0x21, 0x0, 0x84, 0x2, 0x10, 0xf7,
0xbc, 0x21, 0x0, 0x84, 0x2, 0x10, 0x8, 0x43,
0xde, 0xf0, 0x84, 0x2, 0x10, 0x8, 0x40, 0x21,
0x0,
/* U+0024 "$" */
0x8, 0x4, 0x1f, 0xd0, 0x18, 0x84, 0x42, 0x21,
0x10, 0x80, 0x3f, 0x80, 0x21, 0x10, 0x88, 0x46,
0x23, 0x1, 0x7f, 0x4, 0x2, 0x0,
/* U+0025 "%" */
0x0, 0x10, 0x0, 0x10, 0x78, 0x10, 0x84, 0x20,
0x84, 0x20, 0x84, 0x20, 0x84, 0x40, 0x78, 0x80,
0x0, 0x80, 0x1, 0x80, 0x1, 0xe, 0x0, 0x11,
0x2, 0x11, 0x2, 0x11, 0x2, 0x11, 0x4, 0xe,
0x4, 0x0,
/* U+0026 "&" */
0x7, 0x80, 0x0, 0xc4, 0x0, 0x18, 0x20, 0x1,
0x2, 0x0, 0x10, 0x20, 0x1, 0x86, 0x0, 0xc,
0xc0, 0x0, 0x78, 0x78, 0x7, 0x0, 0xc0, 0xc8,
0x1f, 0x18, 0xc3, 0x3, 0x6, 0x60, 0x60, 0x3c,
0xc, 0x1, 0x80, 0x40, 0x1c, 0x64, 0x2, 0x6c,
0x20, 0x42, 0x83, 0x8, 0x0, 0xf, 0x0, 0x0,
/* U+0027 "'" */
0xfe,
/* U+0028 "(" */
0x25, 0x2d, 0x24, 0x92, 0x49, 0x24, 0x92, 0x4c,
0x91, 0x20,
/* U+0029 ")" */
0x91, 0x26, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92,
0x94, 0x80,
/* U+002A "*" */
0x21, 0x36, 0xa8, 0x80,
/* U+002B "+" */
0x8, 0x4, 0x2, 0x1, 0xf, 0x78, 0x40, 0x20,
0x10, 0x8, 0x0,
/* U+002C "," */
0xf0,
/* U+002D "-" */
0xf8,
/* U+002E "." */
0x80,
/* U+002F "/" */
0x2, 0x4, 0x10, 0x20, 0xc0, 0x2, 0x8, 0x10,
0x60, 0x80, 0x4, 0x8, 0x30, 0x40, 0x80, 0x0,
/* U+0030 "0" */
0x7e, 0x81, 0x87, 0x85, 0x85, 0x89, 0x89, 0x0,
0x91, 0x91, 0xa1, 0xa1, 0xe1, 0x81, 0x7e,
/* U+0031 "1" */
0x73, 0x41, 0x4, 0x10, 0x41, 0x4, 0x10, 0x41,
0x4, 0x11, 0xb0,
/* U+0032 "2" */
0x7e, 0x81, 0x81, 0x1, 0x1, 0x1, 0x1, 0x7e,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7e,
/* U+0033 "3" */
0x7e, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0xfe,
0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x7e,
/* U+0034 "4" */
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e, 0x1,
0x1, 0x1, 0x1, 0x1, 0x1,
/* U+0035 "5" */
0x7e, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7e,
0x1, 0x1, 0x1, 0x1, 0x81, 0x81, 0x7e,
/* U+0036 "6" */
0x7e, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7e,
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
/* U+0037 "7" */
0xfc, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x2,
0x4, 0x8, 0x10, 0x20, 0x40,
/* U+0038 "8" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
/* U+0039 "9" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x7e,
/* U+003A ":" */
0x80, 0x80,
/* U+003B ";" */
0x80, 0x78,
/* U+003C "<" */
0x4, 0x23, 0x18, 0xc2, 0x8, 0x10, 0x20, 0x40,
0x81,
/* U+003D "=" */
0xfe, 0x0, 0x7, 0xf0,
/* U+003E ">" */
0x81, 0x3, 0x6, 0xc, 0x10, 0x46, 0x31, 0x8c,
0x20,
/* U+003F "?" */
0xfc, 0x4, 0x8, 0x10, 0x20, 0x40, 0x86, 0x10,
0x20, 0x40, 0x80, 0x0, 0x4, 0x0,
/* U+0040 "@" */
0x7e, 0xfd, 0x0, 0x6, 0x0, 0xc, 0x0, 0x18,
0x4, 0x30, 0x70, 0x61, 0x10, 0x82, 0x20, 0x84,
0x43, 0x8, 0x86, 0xe, 0xf4, 0x0, 0x8, 0x0,
0x10, 0x0, 0x1f, 0xbf, 0x0,
/* U+0041 "A" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
0x81, 0x81, 0x81, 0x81, 0x81, 0x81,
/* U+0042 "B" */
0x78, 0x86, 0x82, 0x81, 0x81, 0x81, 0x82, 0xfe,
0x86, 0x82, 0x81, 0x81, 0x82, 0x86, 0xfc,
/* U+0043 "C" */
0x7e, 0x81, 0x81, 0x81, 0x80, 0x80, 0x80, 0x0,
0x80, 0x80, 0x80, 0x81, 0x81, 0x81, 0x7e,
/* U+0044 "D" */
0x78, 0x43, 0x20, 0xd0, 0x38, 0xc, 0x6, 0x2,
0x1, 0x80, 0xc0, 0x60, 0x30, 0x18, 0x14, 0x33,
0xf0,
/* U+0045 "E" */
0x7e, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xff,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7e,
/* U+0046 "F" */
0x7e, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7f,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
/* U+0047 "G" */
0x7e, 0x20, 0x48, 0x12, 0x0, 0x80, 0x20, 0x8,
0x0, 0x1b, 0x81, 0x20, 0x48, 0x12, 0x4, 0x81,
0x20, 0x47, 0xe0,
/* U+0048 "H" */
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e, 0x81,
0x81, 0x81, 0x81, 0x81, 0x81,
/* U+0049 "I" */
0xec, 0x20, 0x40, 0x81, 0x2, 0x4, 0x0, 0x10,
0x20, 0x40, 0x81, 0x2, 0x3b, 0x80,
/* U+004A "J" */
0x7b, 0xc1, 0x0, 0x40, 0x10, 0x4, 0x1, 0x0,
0x40, 0x0, 0x4, 0x1, 0x8, 0x42, 0x10, 0x84,
0x21, 0x7, 0x80,
/* U+004B "K" */
0x81, 0x82, 0x84, 0x8c, 0x98, 0xb0, 0xa0, 0xa0,
0x90, 0x98, 0x8c, 0x86, 0x83, 0x80,
/* U+004C "L" */
0x81, 0x2, 0x4, 0x8, 0x10, 0x0, 0x40, 0x81,
0x2, 0x4, 0x8, 0xf, 0xc0,
/* U+004D "M" */
0xc3, 0xa5, 0xa5, 0xbd, 0x99, 0x81, 0x0, 0x81,
0x81, 0x81, 0x81, 0x81, 0x81,
/* U+004E "N" */
0xc1, 0xc1, 0xa1, 0xa1, 0x91, 0x91, 0x89, 0x89,
0x8d, 0x85, 0x85, 0x83, 0x81, 0x81,
/* U+004F "O" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x0,
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
/* U+0050 "P" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
/* U+0051 "Q" */
0x7e, 0x10, 0x22, 0x4, 0x40, 0x88, 0x11, 0x2,
0x20, 0x40, 0x0, 0x81, 0x10, 0x22, 0x14, 0x43,
0x88, 0x19, 0x2, 0xbf, 0xd8,
/* U+0052 "R" */
0x7e, 0x40, 0xa0, 0x50, 0x28, 0x14, 0xa, 0x4,
0xfc, 0x82, 0x41, 0xa0, 0x50, 0x28, 0xc, 0x4,
/* U+0053 "S" */
0x7e, 0x81, 0x81, 0x80, 0x80, 0x80, 0x80, 0x7e,
0x1, 0x1, 0x1, 0x1, 0x81, 0x81, 0x7e,
/* U+0054 "T" */
0xf7, 0x84, 0x2, 0x1, 0x0, 0x80, 0x40, 0x20,
0x0, 0x8, 0x4, 0x2, 0x1, 0x0, 0x80, 0x40,
/* U+0055 "U" */
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x0, 0x81,
0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
/* U+0056 "V" */
0x80, 0x38, 0x5, 0x1, 0x20, 0x22, 0xc, 0x41,
0x4, 0x20, 0x88, 0x19, 0x1, 0x60, 0x28, 0x3,
0x0,
/* U+0057 "W" */
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x0, 0x99,
0xb9, 0xa5, 0xa5, 0xc3, 0xc3,
/* U+0058 "X" */
0x85, 0x34, 0x9a, 0x30, 0x3, 0xc, 0x49, 0x2c,
0x61,
/* U+0059 "Y" */
0x0, 0x89, 0x13, 0x62, 0x85, 0x0, 0x8, 0x10,
0x20, 0x40, 0x81, 0x2, 0x0,
/* U+005A "Z" */
0x7f, 0x1, 0x1, 0x3, 0x2, 0x2, 0x4, 0xc,
0x18, 0x20, 0x40, 0x40, 0xc0, 0x80, 0x7f,
/* U+005B "[" */
0x72, 0x49, 0x20, 0x92, 0x49, 0x18,
/* U+005C "\\" */
0x80, 0x40, 0x40, 0x60, 0x20, 0x0, 0x10, 0x10,
0x18, 0x8, 0x8, 0x0, 0x4, 0x2, 0x2, 0x3,
0x1,
/* U+005D "]" */
0xc4, 0x92, 0x48, 0x24, 0x92, 0x78,
/* U+005E "^" */
0x31, 0xa4, 0x91, 0x84, 0x0,
/* U+005F "_" */
0xff, 0xfc,
/* U+0060 "`" */
0x8c, 0x63,
/* U+0061 "a" */
0xfe, 0x1, 0x1, 0x1, 0x7f, 0x81, 0x81, 0xfe,
/* U+0062 "b" */
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7e, 0x81,
0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
/* U+0063 "c" */
0x7f, 0x2, 0x4, 0x8, 0x10, 0x20, 0x3f,
/* U+0064 "d" */
0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x7e, 0x81,
0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
/* U+0065 "e" */
0x7e, 0x81, 0x81, 0xfe, 0x80, 0x80, 0x80, 0x7e,
/* U+0066 "f" */
0x1e, 0x40, 0x81, 0x2, 0x4, 0x8, 0x6c, 0x20,
0x40, 0x81, 0x2, 0x4, 0x0,
/* U+0067 "g" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
0x1, 0x1, 0x1, 0x1, 0x7e,
/* U+0068 "h" */
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7e, 0x81,
0x81, 0x81, 0x81, 0x81, 0x81,
/* U+0069 "i" */
0xbf,
/* U+006A "j" */
0x4, 0x10, 0x41, 0x4, 0x10, 0x41, 0x4, 0x10,
0x41, 0x87, 0xe0,
/* U+006B "k" */
0x81, 0x2, 0x4, 0x8, 0x10, 0xe3, 0x6c, 0xa1,
0x22, 0x24, 0x28, 0x30, 0x0,
/* U+006C "l" */
0xfd, 0xf8,
/* U+006D "m" */
0x7f, 0xd0, 0x86, 0x10, 0xc2, 0x18, 0x43, 0x8,
0x61, 0x8,
/* U+006E "n" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81,
/* U+006F "o" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
/* U+0070 "p" */
0x7e, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x7e,
0x80, 0x80, 0x80, 0x80,
/* U+0071 "q" */
0x7e, 0x10, 0x22, 0x4, 0x40, 0x88, 0x11, 0x2,
0x20, 0x43, 0xf0, 0x1, 0x0, 0x20, 0x5, 0x80,
0xc0,
/* U+0072 "r" */
0x7c, 0x21, 0x8, 0x42, 0x0,
/* U+0073 "s" */
0x7e, 0x8, 0x20, 0x83, 0xf0, 0x41, 0x7, 0xf0,
/* U+0074 "t" */
0x21, 0x8, 0x42, 0x13, 0x64, 0x21, 0x8, 0x42,
0x0,
/* U+0075 "u" */
0x86, 0x18, 0x61, 0x86, 0x17, 0x80,
/* U+0076 "v" */
0x85, 0x14, 0xda, 0x28, 0x0,
/* U+0077 "w" */
0x88, 0xc4, 0x62, 0x31, 0x18, 0x8c, 0x47, 0xfe,
/* U+0078 "x" */
0x82, 0x88, 0xa0, 0x2, 0x88, 0xa0, 0x80,
/* U+0079 "y" */
0x87, 0x14, 0xd2, 0x28, 0x81, 0x8, 0x21, 0x84,
0x10,
/* U+007A "z" */
0xff, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0xff,
/* U+007B "{" */
0x1f, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10,
0x20, 0x40, 0xc0, 0xc0, 0x60, 0x30, 0x10, 0x10,
0x10, 0x10, 0x10, 0x10, 0x10, 0xf,
/* U+007C "|" */
0xff, 0xff, 0xf0,
/* U+007D "}" */
0xf8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0xc,
0x6, 0x3, 0x1, 0x1, 0x6, 0xc, 0x8, 0x8,
0x8, 0x8, 0x8, 0x8, 0x8, 0xf0,
/* U+007E "~" */
0x18, 0x25, 0x8d, 0x1b, 0x41, 0x40
};
/*---------------------
* 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 = 113, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1, .adv_w = 55, .box_w = 1, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 3, .adv_w = 92, .box_w = 3, .box_h = 4, .ofs_x = 1, .ofs_y = 17},
{.bitmap_index = 5, .adv_w = 259, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 30, .adv_w = 168, .box_w = 9, .box_h = 19, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 52, .adv_w = 299, .box_w = 16, .box_h = 17, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 86, .adv_w = 351, .box_w = 20, .box_h = 19, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 134, .adv_w = 55, .box_w = 1, .box_h = 7, .ofs_x = 1, .ofs_y = 12},
{.bitmap_index = 135, .adv_w = 89, .box_w = 3, .box_h = 25, .ofs_x = 1, .ofs_y = -4},
{.bitmap_index = 145, .adv_w = 88, .box_w = 3, .box_h = 25, .ofs_x = 1, .ofs_y = -4},
{.bitmap_index = 155, .adv_w = 128, .box_w = 5, .box_h = 5, .ofs_x = 2, .ofs_y = 12},
{.bitmap_index = 159, .adv_w = 188, .box_w = 9, .box_h = 9, .ofs_x = 1, .ofs_y = 4},
{.bitmap_index = 170, .adv_w = 55, .box_w = 1, .box_h = 4, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 171, .adv_w = 109, .box_w = 5, .box_h = 1, .ofs_x = 1, .ofs_y = 5},
{.bitmap_index = 172, .adv_w = 55, .box_w = 1, .box_h = 1, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 173, .adv_w = 167, .box_w = 7, .box_h = 18, .ofs_x = 2, .ofs_y = -2},
{.bitmap_index = 189, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 204, .adv_w = 129, .box_w = 6, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 215, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 230, .adv_w = 159, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 245, .adv_w = 167, .box_w = 8, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 258, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 273, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 288, .adv_w = 157, .box_w = 7, .box_h = 14, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 301, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 316, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 331, .adv_w = 55, .box_w = 1, .box_h = 9, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 333, .adv_w = 57, .box_w = 1, .box_h = 13, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 335, .adv_w = 130, .box_w = 6, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 344, .adv_w = 146, .box_w = 7, .box_h = 4, .ofs_x = 1, .ofs_y = 6},
{.bitmap_index = 348, .adv_w = 130, .box_w = 6, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 357, .adv_w = 157, .box_w = 7, .box_h = 15, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 371, .adv_w = 281, .box_w = 15, .box_h = 15, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 400, .adv_w = 167, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 414, .adv_w = 164, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 429, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 444, .adv_w = 182, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 461, .adv_w = 159, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 476, .adv_w = 159, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 490, .adv_w = 202, .box_w = 10, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 509, .adv_w = 167, .box_w = 8, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 522, .adv_w = 136, .box_w = 7, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 536, .adv_w = 202, .box_w = 10, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 555, .adv_w = 160, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 569, .adv_w = 157, .box_w = 7, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 582, .adv_w = 167, .box_w = 8, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 595, .adv_w = 167, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 609, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 624, .adv_w = 167, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 638, .adv_w = 207, .box_w = 11, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 659, .adv_w = 183, .box_w = 9, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 675, .adv_w = 167, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 690, .adv_w = 192, .box_w = 9, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 706, .adv_w = 167, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 720, .adv_w = 212, .box_w = 11, .box_h = 12, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 737, .adv_w = 167, .box_w = 8, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 750, .adv_w = 130, .box_w = 6, .box_h = 12, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 759, .adv_w = 137, .box_w = 7, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 772, .adv_w = 164, .box_w = 8, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 787, .adv_w = 91, .box_w = 3, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 793, .adv_w = 164, .box_w = 8, .box_h = 17, .ofs_x = 1, .ofs_y = -1},
{.bitmap_index = 810, .adv_w = 91, .box_w = 3, .box_h = 15, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 816, .adv_w = 134, .box_w = 6, .box_h = 6, .ofs_x = 1, .ofs_y = 11},
{.bitmap_index = 821, .adv_w = 259, .box_w = 14, .box_h = 1, .ofs_x = 1, .ofs_y = -2},
{.bitmap_index = 823, .adv_w = 92, .box_w = 4, .box_h = 4, .ofs_x = 1, .ofs_y = 13},
{.bitmap_index = 825, .adv_w = 165, .box_w = 8, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 833, .adv_w = 167, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 847, .adv_w = 157, .box_w = 7, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 854, .adv_w = 167, .box_w = 8, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 868, .adv_w = 169, .box_w = 8, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 876, .adv_w = 158, .box_w = 7, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 889, .adv_w = 167, .box_w = 8, .box_h = 13, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 902, .adv_w = 167, .box_w = 8, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 915, .adv_w = 55, .box_w = 1, .box_h = 8, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 916, .adv_w = 128, .box_w = 6, .box_h = 14, .ofs_x = 1, .ofs_y = -5},
{.bitmap_index = 927, .adv_w = 151, .box_w = 7, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 940, .adv_w = 55, .box_w = 1, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 942, .adv_w = 216, .box_w = 11, .box_h = 7, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 952, .adv_w = 167, .box_w = 8, .box_h = 7, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 959, .adv_w = 167, .box_w = 8, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 967, .adv_w = 167, .box_w = 8, .box_h = 12, .ofs_x = 1, .ofs_y = -4},
{.bitmap_index = 979, .adv_w = 203, .box_w = 11, .box_h = 12, .ofs_x = 1, .ofs_y = -4},
{.bitmap_index = 996, .adv_w = 122, .box_w = 5, .box_h = 7, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 1001, .adv_w = 126, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 1009, .adv_w = 129, .box_w = 5, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 1018, .adv_w = 136, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 1024, .adv_w = 136, .box_w = 6, .box_h = 6, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 1029, .adv_w = 167, .box_w = 9, .box_h = 7, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 1037, .adv_w = 152, .box_w = 7, .box_h = 7, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 1044, .adv_w = 136, .box_w = 6, .box_h = 12, .ofs_x = 1, .ofs_y = -6},
{.bitmap_index = 1053, .adv_w = 146, .box_w = 8, .box_h = 8, .ofs_x = 1, .ofs_y = 0},
{.bitmap_index = 1061, .adv_w = 166, .box_w = 8, .box_h = 22, .ofs_x = 1, .ofs_y = -3},
{.bitmap_index = 1083, .adv_w = 55, .box_w = 1, .box_h = 20, .ofs_x = 1, .ofs_y = -3},
{.bitmap_index = 1086, .adv_w = 164, .box_w = 8, .box_h = 22, .ofs_x = 1, .ofs_y = -3},
{.bitmap_index = 1108, .adv_w = 216, .box_w = 11, .box_h = 4, .ofs_x = 1, .ofs_y = 7}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 32, .range_length = 95, .glyph_id_start = 1,
.unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
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 = NULL,
.kern_scale = 0,
.cmap_num = 1,
.bpp = 1,
.kern_classes = 0,
.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t ui_font_calculator24 = {
#else
lv_font_t ui_font_calculator24 = {
#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 = 27, /*The maximum line height required by the font*/
.base_line = 6, /*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 = -3,
.underline_thickness = 2,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
#endif /*#if UI_FONT_CALCULATOR24*/