From 17375a8c6c126a44a87ba9674d26d3ff199ce811 Mon Sep 17 00:00:00 2001 From: neonman63 <5744486+neonman63@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:28:39 +0300 Subject: [PATCH] add font --- assets/notosans_14.c | 857 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 857 insertions(+) create mode 100644 assets/notosans_14.c diff --git a/assets/notosans_14.c b/assets/notosans_14.c new file mode 100644 index 0000000..8d76d69 --- /dev/null +++ b/assets/notosans_14.c @@ -0,0 +1,857 @@ +/******************************************************************************* + * Size: 14 px + * Bpp: 1 + * Opts: --bpp 1 --size 14 --no-compress --font NotoSans-Regular.ttf --range 32-127,176,8226,1040-1103,1105 --format lvgl -o notosans_14.c + ******************************************************************************/ + +#ifdef LV_LVGL_H_INCLUDE_SIMPLE +#include "lvgl.h" +#else +#include "lvgl/lvgl.h" +#endif + +#ifndef NOTOSANS_14 +#define NOTOSANS_14 1 +#endif + +#if NOTOSANS_14 + +/*----------------- + * BITMAPS + *----------------*/ + +/*Store the image of the glyphs*/ +static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = { + /* U+0020 " " */ + 0x0, + + /* U+0021 "!" */ + 0xfe, 0xc0, + + /* U+0022 "\"" */ + 0x99, 0x99, + + /* U+0023 "#" */ + 0x12, 0x9, 0x4, 0x8f, 0xf1, 0x21, 0x23, 0xfc, + 0x48, 0x24, 0x12, 0x0, + + /* U+0024 "$" */ + 0x10, 0xed, 0x64, 0xd1, 0xe1, 0xc5, 0x17, 0xe1, + 0x4, + + /* U+0025 "%" */ + 0x61, 0x24, 0x89, 0x22, 0x50, 0x95, 0x9a, 0x90, + 0xa4, 0x49, 0x12, 0x48, 0x60, + + /* U+0026 "&" */ + 0x38, 0x11, 0x4, 0x41, 0xb0, 0x30, 0x16, 0x28, + 0xd2, 0x1c, 0xc7, 0x1e, 0x60, + + /* U+0027 "'" */ + 0xf0, + + /* U+0028 "(" */ + 0x69, 0x49, 0x24, 0x91, 0x26, + + /* U+0029 ")" */ + 0xc9, 0x12, 0x49, 0x25, 0x2c, + + /* U+002A "*" */ + 0x20, 0x8a, 0xde, 0x71, 0x60, 0x0, + + /* U+002B "+" */ + 0x10, 0x20, 0x47, 0xf1, 0x2, 0x4, 0x0, + + /* U+002C "," */ + 0xe8, + + /* U+002D "-" */ + 0xe0, + + /* U+002E "." */ + 0xc0, + + /* U+002F "/" */ + 0x8, 0xc4, 0x22, 0x11, 0x88, 0x46, 0x0, + + /* U+0030 "0" */ + 0x38, 0x8a, 0xc, 0x18, 0x30, 0x60, 0xc1, 0x44, + 0x70, + + /* U+0031 "1" */ + 0x37, 0x51, 0x11, 0x11, 0x11, + + /* U+0032 "2" */ + 0x79, 0x8, 0x10, 0x20, 0xc1, 0x4, 0x10, 0x41, + 0xfc, + + /* U+0033 "3" */ + 0x7a, 0x10, 0x43, 0x30, 0x30, 0x41, 0xf, 0xe0, + + /* U+0034 "4" */ + 0x4, 0x18, 0x51, 0xa2, 0x48, 0xb1, 0x7f, 0x4, + 0x8, + + /* U+0035 "5" */ + 0x7b, 0xc, 0x3e, 0xc, 0x10, 0x41, 0xb, 0xc0, + + /* U+0036 "6" */ + 0x39, 0x8, 0x2e, 0xce, 0x18, 0x61, 0x4d, 0xe0, + + /* U+0037 "7" */ + 0xfe, 0xc, 0x10, 0x60, 0x83, 0x4, 0x8, 0x20, + 0x40, + + /* U+0038 "8" */ + 0x79, 0xa, 0x16, 0x67, 0x89, 0xa0, 0xc1, 0xc6, + 0xf8, + + /* U+0039 "9" */ + 0x7b, 0x28, 0x61, 0x8d, 0xd0, 0x43, 0x9, 0xc0, + + /* U+003A ":" */ + 0xc3, + + /* U+003B ";" */ + 0x50, 0x1, 0x60, + + /* U+003C "<" */ + 0x2, 0x18, 0xc6, 0xe, 0x3, 0x1, 0x80, + + /* U+003D "=" */ + 0xfc, 0x0, 0x3f, + + /* U+003E ">" */ + 0x80, 0xc0, 0xe0, 0x60, 0xce, 0x30, 0x0, + + /* U+003F "?" */ + 0xf0, 0x42, 0x33, 0x21, 0x0, 0x42, 0x0, + + /* U+0040 "@" */ + 0x1f, 0x6, 0x19, 0x3d, 0xec, 0x99, 0x13, 0x22, + 0x64, 0x4c, 0x76, 0x40, 0xc, 0x0, 0x7c, 0x0, + + /* U+0041 "A" */ + 0x8, 0xe, 0x5, 0x2, 0x82, 0x61, 0x11, 0xfc, + 0x82, 0x41, 0x40, 0xc0, + + /* U+0042 "B" */ + 0xfd, 0xe, 0xc, 0x3f, 0x90, 0xe0, 0xc1, 0x87, + 0xf8, + + /* U+0043 "C" */ + 0x3e, 0xc3, 0x4, 0x8, 0x10, 0x20, 0x60, 0x60, + 0x7c, + + /* U+0044 "D" */ + 0xfc, 0x86, 0x83, 0x81, 0x81, 0x81, 0x81, 0x83, + 0x86, 0xf8, + + /* U+0045 "E" */ + 0xfc, 0x21, 0xf, 0xc2, 0x10, 0x87, 0xc0, + + /* U+0046 "F" */ + 0xfc, 0x21, 0xf, 0xc2, 0x10, 0x84, 0x0, + + /* U+0047 "G" */ + 0x1f, 0x60, 0x40, 0x80, 0x87, 0x81, 0x81, 0xc1, + 0x61, 0x3f, + + /* U+0048 "H" */ + 0x81, 0x81, 0x81, 0x81, 0xff, 0x81, 0x81, 0x81, + 0x81, 0x81, + + /* U+0049 "I" */ + 0xe9, 0x24, 0x92, 0x5c, + + /* U+004A "J" */ + 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0xe0, + + /* U+004B "K" */ + 0x85, 0x1a, 0x65, 0x8e, 0x1e, 0x24, 0x44, 0x8d, + 0xc, + + /* U+004C "L" */ + 0x84, 0x21, 0x8, 0x42, 0x10, 0x87, 0xc0, + + /* U+004D "M" */ + 0xc0, 0xf0, 0x3e, 0x16, 0x85, 0xb1, 0x64, 0x99, + 0x26, 0x79, 0x8c, 0x63, 0x10, + + /* U+004E "N" */ + 0xc1, 0xc1, 0xa1, 0xb1, 0x91, 0x89, 0x8d, 0x85, + 0x83, 0x83, + + /* U+004F "O" */ + 0x3e, 0x31, 0xb0, 0x70, 0x18, 0xc, 0x6, 0x3, + 0x83, 0x63, 0x1f, 0x0, + + /* U+0050 "P" */ + 0xfa, 0x38, 0x61, 0x8f, 0xe8, 0x20, 0x82, 0x0, + + /* U+0051 "Q" */ + 0x3e, 0x31, 0xb0, 0x70, 0x18, 0xc, 0x6, 0x3, + 0x83, 0x63, 0x1f, 0x1, 0x80, 0x60, 0x18, + + /* U+0052 "R" */ + 0xf9, 0x1a, 0x14, 0x28, 0xdf, 0x26, 0x44, 0x85, + 0x8, + + /* U+0053 "S" */ + 0x7e, 0x18, 0x20, 0x60, 0x60, 0x41, 0xf, 0xe0, + + /* U+0054 "T" */ + 0xfe, 0x20, 0x40, 0x81, 0x2, 0x4, 0x8, 0x10, + 0x20, + + /* U+0055 "U" */ + 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, + 0x42, 0x3c, + + /* U+0056 "V" */ + 0x81, 0x41, 0x43, 0x62, 0x26, 0x24, 0x34, 0x1c, + 0x18, 0x18, + + /* U+0057 "W" */ + 0xc2, 0x1a, 0x38, 0x91, 0x44, 0x8a, 0x26, 0xd3, + 0x14, 0x50, 0xa2, 0x85, 0x14, 0x38, 0xe0, 0x82, + 0x0, + + /* U+0058 "X" */ + 0x43, 0x62, 0x24, 0x1c, 0x18, 0x18, 0x34, 0x26, + 0x42, 0xc3, + + /* U+0059 "Y" */ + 0x83, 0x8d, 0x11, 0x42, 0x82, 0x4, 0x8, 0x10, + 0x20, + + /* U+005A "Z" */ + 0xfe, 0xc, 0x30, 0x41, 0x86, 0x8, 0x30, 0xc1, + 0xfc, + + /* U+005B "[" */ + 0xf2, 0x49, 0x24, 0x92, 0x4e, + + /* U+005C "\\" */ + 0xc2, 0x10, 0xc2, 0x10, 0x42, 0x18, 0x40, + + /* U+005D "]" */ + 0xe4, 0x92, 0x49, 0x24, 0x9e, + + /* U+005E "^" */ + 0x20, 0xc3, 0x12, 0x4a, 0x18, 0x40, + + /* U+005F "_" */ + 0xfc, + + /* U+0060 "`" */ + 0xb4, + + /* U+0061 "a" */ + 0x78, 0x10, 0x5f, 0xc6, 0x18, 0xdd, + + /* U+0062 "b" */ + 0x81, 0x2, 0x5, 0xcc, 0x50, 0x60, 0xc1, 0x83, + 0x8a, 0xe0, + + /* U+0063 "c" */ + 0x3d, 0x8, 0x20, 0x82, 0x4, 0xf, + + /* U+0064 "d" */ + 0x2, 0x4, 0x9, 0xd4, 0x70, 0x60, 0xc1, 0x82, + 0x8c, 0xe8, + + /* U+0065 "e" */ + 0x79, 0x38, 0x7f, 0x82, 0x4, 0x4f, + + /* U+0066 "f" */ + 0x3a, 0x11, 0xe4, 0x21, 0x8, 0x42, 0x10, + + /* U+0067 "g" */ + 0x3a, 0x8e, 0xc, 0x18, 0x30, 0x51, 0xbd, 0x2, + 0x6, 0x1f, 0xe0, + + /* U+0068 "h" */ + 0x82, 0x8, 0x2e, 0xc6, 0x18, 0x61, 0x86, 0x18, + 0x40, + + /* U+0069 "i" */ + 0x9f, 0xe0, + + /* U+006A "j" */ + 0x20, 0x12, 0x49, 0x24, 0x92, 0x70, + + /* U+006B "k" */ + 0x82, 0x8, 0x22, 0x92, 0xce, 0x3c, 0x92, 0x68, + 0xc0, + + /* U+006C "l" */ + 0xff, 0xe0, + + /* U+006D "m" */ + 0xb9, 0xd8, 0xc6, 0x10, 0xc2, 0x18, 0x43, 0x8, + 0x61, 0xc, 0x21, + + /* U+006E "n" */ + 0xbb, 0x18, 0x61, 0x86, 0x18, 0x61, + + /* U+006F "o" */ + 0x38, 0x8a, 0xc, 0x18, 0x30, 0x51, 0x1c, + + /* U+0070 "p" */ + 0xb9, 0x8a, 0xc, 0x18, 0x30, 0x71, 0x5c, 0x81, + 0x2, 0x4, 0x0, + + /* U+0071 "q" */ + 0x3a, 0x8e, 0xc, 0x18, 0x30, 0x51, 0x9d, 0x2, + 0x4, 0x8, 0x10, + + /* U+0072 "r" */ + 0xbc, 0x88, 0x88, 0x88, + + /* U+0073 "s" */ + 0x7c, 0x60, 0xc1, 0x84, 0x3e, + + /* U+0074 "t" */ + 0x42, 0x3e, 0x84, 0x21, 0x8, 0x41, 0xc0, + + /* U+0075 "u" */ + 0x86, 0x18, 0x61, 0x86, 0x18, 0xdd, + + /* U+0076 "v" */ + 0x82, 0x8d, 0x12, 0x22, 0xc5, 0xa, 0x8, + + /* U+0077 "w" */ + 0xc4, 0x69, 0x49, 0x29, 0x25, 0x26, 0xac, 0x63, + 0xc, 0x61, 0x8c, + + /* U+0078 "x" */ + 0x46, 0xc8, 0xa0, 0xc1, 0x85, 0x99, 0x23, + + /* U+0079 "y" */ + 0x87, 0x89, 0x12, 0x26, 0x85, 0xa, 0x8, 0x10, + 0x60, 0x87, 0x0, + + /* U+007A "z" */ + 0xf8, 0xc4, 0x42, 0x23, 0x1f, + + /* U+007B "{" */ + 0x19, 0x8, 0x42, 0x13, 0x4, 0x21, 0x8, 0x41, + 0x80, + + /* U+007C "|" */ + 0xff, 0xfe, + + /* U+007D "}" */ + 0xc1, 0x8, 0x42, 0x10, 0x64, 0x21, 0x8, 0x4c, + 0x0, + + /* U+007E "~" */ + 0xf3, 0x3c, + + /* U+00B0 "°" */ + 0x74, 0x63, 0x17, 0x0, + + /* U+0410 "А" */ + 0x8, 0xe, 0x5, 0x2, 0x82, 0x61, 0x11, 0xfc, + 0x82, 0x41, 0x40, 0xc0, + + /* U+0411 "Б" */ + 0xfe, 0x8, 0x20, 0xfa, 0x38, 0x61, 0x8f, 0xe0, + + /* U+0412 "В" */ + 0xfd, 0xe, 0xc, 0x3f, 0x90, 0xe0, 0xc1, 0x87, + 0xf8, + + /* U+0413 "Г" */ + 0xfc, 0x21, 0x8, 0x42, 0x10, 0x84, 0x0, + + /* U+0414 "Д" */ + 0x1f, 0x84, 0x21, 0x8, 0x42, 0x10, 0x84, 0x21, + 0x8, 0xc2, 0x60, 0xbf, 0xf8, 0x6, 0x1, + + /* U+0415 "Е" */ + 0xfc, 0x21, 0xf, 0xc2, 0x10, 0x87, 0xc0, + + /* U+0416 "Ж" */ + 0x42, 0x11, 0x11, 0xc, 0x98, 0x24, 0x80, 0xf8, + 0x9, 0x20, 0xc9, 0x84, 0x44, 0x62, 0x32, 0x10, + 0x80, + + /* U+0417 "З" */ + 0xf8, 0x10, 0x43, 0x70, 0x30, 0x41, 0xf, 0xe0, + + /* U+0418 "И" */ + 0x83, 0x83, 0x85, 0x8d, 0x89, 0x91, 0xb1, 0xa1, + 0xc1, 0xc1, + + /* U+0419 "Й" */ + 0x24, 0x3c, 0x0, 0x83, 0x83, 0x85, 0x8d, 0x89, + 0x91, 0xb1, 0xa1, 0xc1, 0xc1, + + /* U+041A "К" */ + 0x85, 0x1a, 0x24, 0x8f, 0x12, 0x26, 0x44, 0x85, + 0xc, + + /* U+041B "Л" */ + 0x3f, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, + 0x21, 0xc1, + + /* U+041C "М" */ + 0xc0, 0xf0, 0x3e, 0x16, 0x85, 0xb1, 0x64, 0x99, + 0x26, 0x79, 0x8c, 0x63, 0x10, + + /* U+041D "Н" */ + 0x81, 0x81, 0x81, 0x81, 0xff, 0x81, 0x81, 0x81, + 0x81, 0x81, + + /* U+041E "О" */ + 0x3e, 0x31, 0xb0, 0x70, 0x18, 0xc, 0x6, 0x3, + 0x83, 0x63, 0x1f, 0x0, + + /* U+041F "П" */ + 0xff, 0x6, 0xc, 0x18, 0x30, 0x60, 0xc1, 0x83, + 0x4, + + /* U+0420 "Р" */ + 0xfa, 0x38, 0x61, 0x8f, 0xe8, 0x20, 0x82, 0x0, + + /* U+0421 "С" */ + 0x3f, 0x60, 0xc0, 0x80, 0x80, 0x80, 0x80, 0xc0, + 0x61, 0x3f, + + /* U+0422 "Т" */ + 0xfe, 0x20, 0x40, 0x81, 0x2, 0x4, 0x8, 0x10, + 0x20, + + /* U+0423 "У" */ + 0xc1, 0x43, 0x62, 0x22, 0x34, 0x14, 0x1c, 0x8, + 0x18, 0x70, + + /* U+0424 "Ф" */ + 0x8, 0x1f, 0x12, 0x51, 0x18, 0x8c, 0x45, 0x24, + 0x7c, 0x8, 0x4, 0x0, + + /* U+0425 "Х" */ + 0x43, 0x62, 0x24, 0x1c, 0x18, 0x18, 0x34, 0x26, + 0x42, 0xc3, + + /* U+0426 "Ц" */ + 0x82, 0x41, 0x20, 0x90, 0x48, 0x24, 0x12, 0x9, + 0x4, 0x82, 0x7f, 0xc0, 0x20, 0x10, 0x8, + + /* U+0427 "Ч" */ + 0x83, 0x6, 0xc, 0x1c, 0x2f, 0xc0, 0x81, 0x2, + 0x4, + + /* U+0428 "Ш" */ + 0x84, 0x30, 0x86, 0x10, 0xc2, 0x18, 0x43, 0x8, + 0x61, 0xc, 0x21, 0x84, 0x3f, 0xfc, + + /* U+0429 "Щ" */ + 0x84, 0x24, 0x21, 0x21, 0x9, 0x8, 0x48, 0x42, + 0x42, 0x12, 0x10, 0x90, 0x84, 0x84, 0x27, 0xff, + 0xc0, 0x2, 0x0, 0x10, 0x0, 0x80, + + /* U+042A "Ъ" */ + 0xe0, 0x20, 0x20, 0x20, 0x3e, 0x23, 0x21, 0x21, + 0x23, 0x3e, + + /* U+042B "Ы" */ + 0x80, 0xc0, 0x60, 0x30, 0x1f, 0x8c, 0x66, 0x13, + 0x9, 0x8c, 0xfc, 0x40, + + /* U+042C "Ь" */ + 0x82, 0x8, 0x20, 0xfa, 0x38, 0x61, 0x8f, 0xe0, + + /* U+042D "Э" */ + 0xf8, 0x8, 0x8, 0x17, 0xe0, 0x40, 0x83, 0xd, + 0xf0, + + /* U+042E "Ю" */ + 0x87, 0xc8, 0xc6, 0x98, 0x39, 0x1, 0xf0, 0x19, + 0x1, 0x90, 0x19, 0x83, 0x8c, 0x68, 0x7c, + + /* U+042F "Я" */ + 0x3e, 0xc5, 0xa, 0x16, 0x27, 0xcc, 0x91, 0x62, + 0x84, + + /* U+0430 "а" */ + 0x78, 0x10, 0x5f, 0xc6, 0x18, 0xdd, + + /* U+0431 "б" */ + 0x2, 0x7d, 0x4, 0xb, 0x98, 0xa0, 0xc1, 0x83, + 0x5, 0x11, 0xc0, + + /* U+0432 "в" */ + 0xfa, 0x18, 0x7e, 0x86, 0x18, 0x7e, + + /* U+0433 "г" */ + 0xf8, 0x88, 0x88, 0x88, + + /* U+0434 "д" */ + 0x3e, 0x22, 0x22, 0x22, 0x22, 0x22, 0x42, 0xff, + 0x81, 0x81, + + /* U+0435 "е" */ + 0x79, 0x38, 0x7f, 0x82, 0x4, 0x4f, + + /* U+0436 "ж" */ + 0x44, 0x44, 0x90, 0xd6, 0xf, 0x83, 0x58, 0x49, + 0x19, 0x32, 0x22, + + /* U+0437 "з" */ + 0xf8, 0x10, 0x5e, 0x4, 0x18, 0x7e, + + /* U+0438 "и" */ + 0x8e, 0x39, 0x65, 0xa6, 0x9c, 0x71, + + /* U+0439 "й" */ + 0x48, 0xe0, 0x23, 0x8e, 0x59, 0x69, 0xa7, 0x1c, + 0x40, + + /* U+043A "к" */ + 0x8a, 0x69, 0x38, 0x92, 0x48, 0xa3, + + /* U+043B "л" */ + 0x3e, 0x44, 0x89, 0x12, 0x24, 0x48, 0xe1, + + /* U+043C "м" */ + 0xc3, 0xc3, 0xe3, 0xa5, 0xa5, 0x99, 0x99, 0x99, + + /* U+043D "н" */ + 0x86, 0x18, 0x7f, 0x86, 0x18, 0x61, + + /* U+043E "о" */ + 0x38, 0x8a, 0xc, 0x18, 0x30, 0x51, 0x1c, + + /* U+043F "п" */ + 0xfe, 0x18, 0x61, 0x86, 0x18, 0x61, + + /* U+0440 "р" */ + 0xb9, 0x8a, 0xc, 0x18, 0x30, 0x71, 0x5c, 0x81, + 0x2, 0x4, 0x0, + + /* U+0441 "с" */ + 0x3d, 0x8, 0x20, 0x82, 0x4, 0xf, + + /* U+0442 "т" */ + 0xfc, 0x41, 0x4, 0x10, 0x41, 0x4, + + /* U+0443 "у" */ + 0x87, 0x89, 0x12, 0x66, 0x85, 0xa, 0x18, 0x10, + 0x60, 0x86, 0x0, + + /* U+0444 "ф" */ + 0x8, 0x4, 0x2, 0x7, 0xc4, 0x94, 0x46, 0x23, + 0x11, 0x88, 0xa4, 0x8f, 0x81, 0x0, 0x80, 0x40, + 0x20, + + /* U+0445 "х" */ + 0x46, 0xc8, 0xa0, 0xc3, 0x85, 0x19, 0x63, + + /* U+0446 "ц" */ + 0x85, 0xa, 0x14, 0x28, 0x50, 0xa1, 0x7f, 0x2, + 0x4, + + /* U+0447 "ч" */ + 0x86, 0x18, 0x61, 0x7c, 0x10, 0x41, + + /* U+0448 "ш" */ + 0x84, 0x30, 0x86, 0x10, 0xc2, 0x18, 0x43, 0x8, + 0x61, 0xf, 0xff, + + /* U+0449 "щ" */ + 0x84, 0x50, 0x8a, 0x11, 0x42, 0x28, 0x45, 0x8, + 0xa1, 0x17, 0xff, 0x0, 0x20, 0x4, + + /* U+044A "ъ" */ + 0xe0, 0x20, 0x20, 0x3e, 0x21, 0x21, 0x21, 0x3e, + + /* U+044B "ы" */ + 0x81, 0x81, 0x81, 0xf9, 0x85, 0x85, 0x85, 0xf9, + + /* U+044C "ь" */ + 0x82, 0x8, 0x3e, 0x86, 0x18, 0x7e, + + /* U+044D "э" */ + 0x70, 0x20, 0x5f, 0x4, 0x10, 0xbc, + + /* U+044E "ю" */ + 0x8f, 0x4c, 0xa4, 0x3e, 0x19, 0xc, 0x86, 0x65, + 0x1e, + + /* U+044F "я" */ + 0x7e, 0x18, 0x61, 0x7d, 0x94, 0x61, + + /* U+0451 "ё" */ + 0x28, 0x7, 0x93, 0x87, 0xf8, 0x20, 0x44, 0xf0, + + /* U+2022 "•" */ + 0xff, 0x80 +}; + + +/*--------------------- + * 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 = 58, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1, .adv_w = 60, .box_w = 1, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 3, .adv_w = 91, .box_w = 4, .box_h = 4, .ofs_x = 1, .ofs_y = 6}, + {.bitmap_index = 5, .adv_w = 145, .box_w = 9, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 17, .adv_w = 128, .box_w = 6, .box_h = 12, .ofs_x = 1, .ofs_y = -1}, + {.bitmap_index = 26, .adv_w = 186, .box_w = 10, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 39, .adv_w = 164, .box_w = 10, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 52, .adv_w = 50, .box_w = 1, .box_h = 4, .ofs_x = 1, .ofs_y = 6}, + {.bitmap_index = 53, .adv_w = 67, .box_w = 3, .box_h = 13, .ofs_x = 1, .ofs_y = -3}, + {.bitmap_index = 58, .adv_w = 67, .box_w = 3, .box_h = 13, .ofs_x = 0, .ofs_y = -3}, + {.bitmap_index = 63, .adv_w = 123, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 4}, + {.bitmap_index = 69, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 1, .ofs_y = 2}, + {.bitmap_index = 76, .adv_w = 60, .box_w = 2, .box_h = 3, .ofs_x = 1, .ofs_y = -2}, + {.bitmap_index = 77, .adv_w = 72, .box_w = 3, .box_h = 1, .ofs_x = 1, .ofs_y = 3}, + {.bitmap_index = 78, .adv_w = 60, .box_w = 1, .box_h = 2, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 79, .adv_w = 83, .box_w = 5, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 86, .adv_w = 128, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 95, .adv_w = 128, .box_w = 4, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 100, .adv_w = 128, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 109, .adv_w = 128, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 117, .adv_w = 128, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 126, .adv_w = 128, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 134, .adv_w = 128, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 142, .adv_w = 128, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 151, .adv_w = 128, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 160, .adv_w = 128, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 168, .adv_w = 60, .box_w = 1, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 169, .adv_w = 60, .box_w = 2, .box_h = 10, .ofs_x = 0, .ofs_y = -2}, + {.bitmap_index = 172, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 1, .ofs_y = 2}, + {.bitmap_index = 179, .adv_w = 128, .box_w = 6, .box_h = 4, .ofs_x = 1, .ofs_y = 3}, + {.bitmap_index = 182, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 1, .ofs_y = 2}, + {.bitmap_index = 189, .adv_w = 97, .box_w = 5, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 196, .adv_w = 201, .box_w = 11, .box_h = 11, .ofs_x = 1, .ofs_y = -1}, + {.bitmap_index = 212, .adv_w = 143, .box_w = 9, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 224, .adv_w = 146, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 233, .adv_w = 142, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 242, .adv_w = 164, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 252, .adv_w = 125, .box_w = 5, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 259, .adv_w = 116, .box_w = 5, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 266, .adv_w = 163, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 276, .adv_w = 166, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 286, .adv_w = 76, .box_w = 3, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 290, .adv_w = 61, .box_w = 4, .box_h = 13, .ofs_x = -1, .ofs_y = -3}, + {.bitmap_index = 297, .adv_w = 139, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 306, .adv_w = 117, .box_w = 5, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 313, .adv_w = 203, .box_w = 10, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 326, .adv_w = 170, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 336, .adv_w = 175, .box_w = 9, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 348, .adv_w = 136, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 356, .adv_w = 175, .box_w = 9, .box_h = 13, .ofs_x = 1, .ofs_y = -3}, + {.bitmap_index = 371, .adv_w = 139, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 380, .adv_w = 123, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 388, .adv_w = 125, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 397, .adv_w = 164, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 407, .adv_w = 134, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 417, .adv_w = 208, .box_w = 13, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 434, .adv_w = 131, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 444, .adv_w = 127, .box_w = 7, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 453, .adv_w = 128, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 462, .adv_w = 74, .box_w = 3, .box_h = 13, .ofs_x = 1, .ofs_y = -3}, + {.bitmap_index = 467, .adv_w = 83, .box_w = 5, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 474, .adv_w = 74, .box_w = 3, .box_h = 13, .ofs_x = 0, .ofs_y = -3}, + {.bitmap_index = 479, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 4}, + {.bitmap_index = 485, .adv_w = 99, .box_w = 6, .box_h = 1, .ofs_x = 0, .ofs_y = -2}, + {.bitmap_index = 486, .adv_w = 63, .box_w = 2, .box_h = 3, .ofs_x = 1, .ofs_y = 9}, + {.bitmap_index = 487, .adv_w = 126, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 493, .adv_w = 138, .box_w = 7, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 503, .adv_w = 108, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 509, .adv_w = 138, .box_w = 7, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 519, .adv_w = 126, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 525, .adv_w = 77, .box_w = 5, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 532, .adv_w = 138, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = -4}, + {.bitmap_index = 543, .adv_w = 138, .box_w = 6, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 552, .adv_w = 58, .box_w = 1, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 554, .adv_w = 58, .box_w = 3, .box_h = 15, .ofs_x = -1, .ofs_y = -4}, + {.bitmap_index = 560, .adv_w = 120, .box_w = 6, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 569, .adv_w = 58, .box_w = 1, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 571, .adv_w = 209, .box_w = 11, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 582, .adv_w = 138, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 588, .adv_w = 136, .box_w = 7, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 595, .adv_w = 138, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = -4}, + {.bitmap_index = 606, .adv_w = 138, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = -4}, + {.bitmap_index = 617, .adv_w = 93, .box_w = 4, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 621, .adv_w = 107, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 626, .adv_w = 81, .box_w = 5, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 633, .adv_w = 138, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 639, .adv_w = 114, .box_w = 7, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 646, .adv_w = 176, .box_w = 11, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 657, .adv_w = 118, .box_w = 7, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 664, .adv_w = 114, .box_w = 7, .box_h = 12, .ofs_x = 0, .ofs_y = -4}, + {.bitmap_index = 675, .adv_w = 105, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 680, .adv_w = 85, .box_w = 5, .box_h = 13, .ofs_x = 0, .ofs_y = -3}, + {.bitmap_index = 689, .adv_w = 123, .box_w = 1, .box_h = 15, .ofs_x = 3, .ofs_y = -4}, + {.bitmap_index = 691, .adv_w = 85, .box_w = 5, .box_h = 13, .ofs_x = 0, .ofs_y = -3}, + {.bitmap_index = 700, .adv_w = 128, .box_w = 7, .box_h = 2, .ofs_x = 1, .ofs_y = 4}, + {.bitmap_index = 702, .adv_w = 96, .box_w = 5, .box_h = 5, .ofs_x = 1, .ofs_y = 6}, + {.bitmap_index = 706, .adv_w = 143, .box_w = 9, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 718, .adv_w = 138, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 726, .adv_w = 146, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 735, .adv_w = 114, .box_w = 5, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 742, .adv_w = 163, .box_w = 10, .box_h = 12, .ofs_x = 1, .ofs_y = -2}, + {.bitmap_index = 757, .adv_w = 125, .box_w = 5, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 764, .adv_w = 203, .box_w = 13, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 781, .adv_w = 129, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 789, .adv_w = 169, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 799, .adv_w = 169, .box_w = 8, .box_h = 13, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 812, .adv_w = 140, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 821, .adv_w = 156, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 831, .adv_w = 203, .box_w = 10, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 844, .adv_w = 166, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 854, .adv_w = 170, .box_w = 9, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 866, .adv_w = 164, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 875, .adv_w = 136, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 883, .adv_w = 143, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 893, .adv_w = 125, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 902, .adv_w = 138, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 912, .adv_w = 183, .box_w = 9, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 924, .adv_w = 132, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 934, .adv_w = 166, .box_w = 9, .box_h = 13, .ofs_x = 1, .ofs_y = -3}, + {.bitmap_index = 949, .adv_w = 151, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 958, .adv_w = 232, .box_w = 11, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 972, .adv_w = 230, .box_w = 13, .box_h = 13, .ofs_x = 1, .ofs_y = -3}, + {.bitmap_index = 994, .adv_w = 153, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1004, .adv_w = 190, .box_w = 9, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1016, .adv_w = 136, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1024, .adv_w = 145, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1033, .adv_w = 224, .box_w = 12, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1048, .adv_w = 143, .box_w = 7, .box_h = 10, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1057, .adv_w = 125, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1063, .adv_w = 134, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1074, .adv_w = 126, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1080, .adv_w = 98, .box_w = 4, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1084, .adv_w = 136, .box_w = 8, .box_h = 10, .ofs_x = 1, .ofs_y = -2}, + {.bitmap_index = 1094, .adv_w = 123, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1100, .adv_w = 170, .box_w = 11, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1111, .adv_w = 109, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1117, .adv_w = 139, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1123, .adv_w = 139, .box_w = 6, .box_h = 11, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1132, .adv_w = 119, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1138, .adv_w = 131, .box_w = 7, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1145, .adv_w = 172, .box_w = 8, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1153, .adv_w = 138, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1159, .adv_w = 133, .box_w = 7, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1166, .adv_w = 136, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1172, .adv_w = 136, .box_w = 7, .box_h = 12, .ofs_x = 1, .ofs_y = -4}, + {.bitmap_index = 1183, .adv_w = 110, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1189, .adv_w = 104, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1195, .adv_w = 114, .box_w = 7, .box_h = 12, .ofs_x = 0, .ofs_y = -4}, + {.bitmap_index = 1206, .adv_w = 165, .box_w = 9, .box_h = 15, .ofs_x = 1, .ofs_y = -4}, + {.bitmap_index = 1223, .adv_w = 114, .box_w = 7, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1230, .adv_w = 137, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = -2}, + {.bitmap_index = 1239, .adv_w = 132, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1245, .adv_w = 200, .box_w = 11, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1256, .adv_w = 201, .box_w = 11, .box_h = 10, .ofs_x = 1, .ofs_y = -2}, + {.bitmap_index = 1270, .adv_w = 140, .box_w = 8, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1278, .adv_w = 170, .box_w = 8, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1286, .adv_w = 122, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1292, .adv_w = 111, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1298, .adv_w = 179, .box_w = 9, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1307, .adv_w = 129, .box_w = 6, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1313, .adv_w = 123, .box_w = 6, .box_h = 10, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 1321, .adv_w = 84, .box_w = 3, .box_h = 3, .ofs_x = 1, .ofs_y = 4} +}; + +/*--------------------- + * CHARACTER MAPPING + *--------------------*/ + +static const uint16_t unicode_list_3[] = { + 0x0, 0x1bd1 +}; + +/*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 + }, + { + .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 = 1040, .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 + }, + { + .range_start = 1105, .range_length = 7122, .glyph_id_start = 161, + .unicode_list = unicode_list_3, .glyph_id_ofs_list = NULL, .list_length = 2, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY + } +}; + + + +/*-------------------- + * 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 = NULL, + .kern_scale = 0, + .cmap_num = 4, + .bpp = 1, + .kern_classes = 0, + .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 notosans_14 = { +#else +lv_font_t notosans_14 = { +#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 = 17, /*The maximum line height required by the font*/ + .base_line = 4, /*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 = -1, + .underline_thickness = 1, +#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 NOTOSANS_14*/ +