acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_font_unscii_8.c (16653B)
1 /******************************************************************************* 2 * Size: 8 px 3 * Bpp: 1 4 * Opts: --no-compress --no-prefilter --bpp 1 --size 8 --font unscii-8.ttf -r 0x20-0x7F --format lvgl -o lv_font_unscii_8.c --force-fast-kern-format 5 ******************************************************************************/ 6 7 #ifdef LV_LVGL_H_INCLUDE_SIMPLE 8 #include "lvgl.h" 9 #else 10 #include "../../lvgl.h" 11 #endif 12 13 #ifndef LV_FONT_UNSCII_8 14 #define LV_FONT_UNSCII_8 1 15 #endif 16 17 #if LV_FONT_UNSCII_8 18 19 /*----------------- 20 * BITMAPS 21 *----------------*/ 22 23 /*Store the image of the glyphs*/ 24 static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = { 25 /* U+0020 " " */ 26 0x0, 27 28 /* U+0021 "!" */ 29 0xff, 0xcc, 30 31 /* U+0022 "\"" */ 32 0xcf, 0x3c, 0xc0, 33 34 /* U+0023 "#" */ 35 0x6c, 0xdb, 0xfb, 0x6f, 0xed, 0x9b, 0x0, 36 37 /* U+0024 "$" */ 38 0x31, 0xfc, 0x1e, 0xf, 0xe3, 0x0, 39 40 /* U+0025 "%" */ 41 0xc7, 0x98, 0x61, 0x86, 0x78, 0xc0, 42 43 /* U+0026 "&" */ 44 0x38, 0xd8, 0xe3, 0xbd, 0xd9, 0x9d, 0x80, 45 46 /* U+0027 "'" */ 47 0x6f, 0x0, 48 49 /* U+0028 "(" */ 50 0x36, 0xcc, 0xc6, 0x30, 51 52 /* U+0029 ")" */ 53 0xc6, 0x33, 0x36, 0xc0, 54 55 /* U+002A "*" */ 56 0x66, 0x3c, 0xff, 0x3c, 0x66, 57 58 /* U+002B "+" */ 59 0x30, 0xcf, 0xcc, 0x30, 60 61 /* U+002C "," */ 62 0x6f, 0x0, 63 64 /* U+002D "-" */ 65 0xfc, 66 67 /* U+002E "." */ 68 0xf0, 69 70 /* U+002F "/" */ 71 0x3, 0x6, 0xc, 0x18, 0x30, 0x60, 0xc0, 72 73 /* U+0030 "0" */ 74 0x7b, 0x3d, 0xfb, 0xcf, 0x37, 0x80, 75 76 /* U+0031 "1" */ 77 0x31, 0xc3, 0xc, 0x30, 0xcf, 0xc0, 78 79 /* U+0032 "2" */ 80 0x7b, 0x31, 0x8c, 0x63, 0xf, 0xc0, 81 82 /* U+0033 "3" */ 83 0x7b, 0x30, 0xce, 0xf, 0x37, 0x80, 84 85 /* U+0034 "4" */ 86 0x1c, 0x79, 0xb6, 0x6f, 0xe1, 0x83, 0x0, 87 88 /* U+0035 "5" */ 89 0xff, 0xf, 0x83, 0xf, 0x37, 0x80, 90 91 /* U+0036 "6" */ 92 0x39, 0x8c, 0x3e, 0xcf, 0x37, 0x80, 93 94 /* U+0037 "7" */ 95 0xfc, 0x30, 0xc6, 0x30, 0xc3, 0x0, 96 97 /* U+0038 "8" */ 98 0x7b, 0x3c, 0xde, 0xcf, 0x37, 0x80, 99 100 /* U+0039 "9" */ 101 0x7b, 0x3c, 0xdf, 0xc, 0x67, 0x0, 102 103 /* U+003A ":" */ 104 0xf0, 0xf0, 105 106 /* U+003B ";" */ 107 0x6c, 0x6, 0xf0, 108 109 /* U+003C "<" */ 110 0x19, 0x99, 0x86, 0x18, 0x60, 111 112 /* U+003D "=" */ 113 0xfc, 0xf, 0xc0, 114 115 /* U+003E ">" */ 116 0xc3, 0xc, 0x33, 0x33, 0x0, 117 118 /* U+003F "?" */ 119 0x7b, 0x30, 0xc6, 0x30, 0x3, 0x0, 120 121 /* U+0040 "@" */ 122 0x7d, 0x8f, 0x7e, 0xfd, 0xf8, 0x1f, 0x0, 123 124 /* U+0041 "A" */ 125 0x31, 0xec, 0xf3, 0xff, 0x3c, 0xc0, 126 127 /* U+0042 "B" */ 128 0xfb, 0x3c, 0xfe, 0xcf, 0x3f, 0x80, 129 130 /* U+0043 "C" */ 131 0x7b, 0x3c, 0x30, 0xc3, 0x37, 0x80, 132 133 /* U+0044 "D" */ 134 0xf3, 0x6c, 0xf3, 0xcf, 0x6f, 0x0, 135 136 /* U+0045 "E" */ 137 0xff, 0xc, 0x3e, 0xc3, 0xf, 0xc0, 138 139 /* U+0046 "F" */ 140 0xff, 0xc, 0x3e, 0xc3, 0xc, 0x0, 141 142 /* U+0047 "G" */ 143 0x7b, 0x3c, 0x37, 0xcf, 0x37, 0xc0, 144 145 /* U+0048 "H" */ 146 0xcf, 0x3c, 0xff, 0xcf, 0x3c, 0xc0, 147 148 /* U+0049 "I" */ 149 0xfc, 0xc3, 0xc, 0x30, 0xcf, 0xc0, 150 151 /* U+004A "J" */ 152 0xc, 0x30, 0xc3, 0xf, 0x37, 0x80, 153 154 /* U+004B "K" */ 155 0xc7, 0x9b, 0x67, 0x8d, 0x99, 0xb1, 0x80, 156 157 /* U+004C "L" */ 158 0xc3, 0xc, 0x30, 0xc3, 0xf, 0xc0, 159 160 /* U+004D "M" */ 161 0xc7, 0xdf, 0xfe, 0xbc, 0x78, 0xf1, 0x80, 162 163 /* U+004E "N" */ 164 0xc7, 0xcf, 0xde, 0xfc, 0xf8, 0xf1, 0x80, 165 166 /* U+004F "O" */ 167 0x7b, 0x3c, 0xf3, 0xcf, 0x37, 0x80, 168 169 /* U+0050 "P" */ 170 0xfb, 0x3c, 0xfe, 0xc3, 0xc, 0x0, 171 172 /* U+0051 "Q" */ 173 0x7b, 0x3c, 0xf3, 0xcf, 0x66, 0xc0, 174 175 /* U+0052 "R" */ 176 0xfb, 0x3c, 0xfe, 0xdb, 0x3c, 0xc0, 177 178 /* U+0053 "S" */ 179 0x7b, 0x3c, 0x1e, 0xf, 0x37, 0x80, 180 181 /* U+0054 "T" */ 182 0xfc, 0xc3, 0xc, 0x30, 0xc3, 0x0, 183 184 /* U+0055 "U" */ 185 0xcf, 0x3c, 0xf3, 0xcf, 0x37, 0x80, 186 187 /* U+0056 "V" */ 188 0xcf, 0x3c, 0xf3, 0xcd, 0xe3, 0x0, 189 190 /* U+0057 "W" */ 191 0xc7, 0x8f, 0x1e, 0xbf, 0xfd, 0xf1, 0x80, 192 193 /* U+0058 "X" */ 194 0xc3, 0x66, 0x3c, 0x18, 0x3c, 0x66, 0xc3, 195 196 /* U+0059 "Y" */ 197 0xc3, 0x66, 0x3c, 0x18, 0x18, 0x18, 0x18, 198 199 /* U+005A "Z" */ 200 0xfc, 0x31, 0x8c, 0x63, 0xf, 0xc0, 201 202 /* U+005B "[" */ 203 0xfc, 0xcc, 0xcc, 0xf0, 204 205 /* U+005C "\\" */ 206 0xc0, 0x60, 0x30, 0x18, 0xc, 0x6, 0x3, 207 208 /* U+005D "]" */ 209 0xf3, 0x33, 0x33, 0xf0, 210 211 /* U+005E "^" */ 212 0x10, 0x71, 0xb6, 0x30, 213 214 /* U+005F "_" */ 215 0xff, 216 217 /* U+0060 "`" */ 218 0xc6, 0x30, 219 220 /* U+0061 "a" */ 221 0x78, 0x37, 0xf3, 0x7c, 222 223 /* U+0062 "b" */ 224 0xc3, 0xf, 0xb3, 0xcf, 0x3f, 0x80, 225 226 /* U+0063 "c" */ 227 0x7e, 0x31, 0x87, 0x80, 228 229 /* U+0064 "d" */ 230 0xc, 0x37, 0xf3, 0xcf, 0x37, 0xc0, 231 232 /* U+0065 "e" */ 233 0x7b, 0x3f, 0xf0, 0x78, 234 235 /* U+0066 "f" */ 236 0x3b, 0x3e, 0xc6, 0x31, 0x80, 237 238 /* U+0067 "g" */ 239 0x7f, 0x3c, 0xdf, 0xf, 0xe0, 240 241 /* U+0068 "h" */ 242 0xc3, 0xf, 0xb3, 0xcf, 0x3c, 0xc0, 243 244 /* U+0069 "i" */ 245 0x60, 0x38, 0xc6, 0x31, 0xe0, 246 247 /* U+006A "j" */ 248 0x18, 0x6, 0x31, 0x8c, 0x7e, 249 250 /* U+006B "k" */ 251 0xc3, 0xc, 0xf6, 0xf3, 0x6c, 0xc0, 252 253 /* U+006C "l" */ 254 0xe3, 0x18, 0xc6, 0x31, 0xe0, 255 256 /* U+006D "m" */ 257 0xcd, 0xff, 0x5e, 0xbc, 0x60, 258 259 /* U+006E "n" */ 260 0xfb, 0x3c, 0xf3, 0xcc, 261 262 /* U+006F "o" */ 263 0x7b, 0x3c, 0xf3, 0x78, 264 265 /* U+0070 "p" */ 266 0xfb, 0x3c, 0xfe, 0xc3, 0x0, 267 268 /* U+0071 "q" */ 269 0x7f, 0x3c, 0xdf, 0xc, 0x30, 270 271 /* U+0072 "r" */ 272 0xfb, 0x3c, 0x30, 0xc0, 273 274 /* U+0073 "s" */ 275 0x7f, 0x7, 0x83, 0xf8, 276 277 /* U+0074 "t" */ 278 0x61, 0x8f, 0xd8, 0x61, 0x83, 0xc0, 279 280 /* U+0075 "u" */ 281 0xcf, 0x3c, 0xf3, 0x7c, 282 283 /* U+0076 "v" */ 284 0xcf, 0x3c, 0xde, 0x30, 285 286 /* U+0077 "w" */ 287 0xc7, 0x8f, 0x5b, 0xe6, 0xc0, 288 289 /* U+0078 "x" */ 290 0xc6, 0xd8, 0xe3, 0x6c, 0x60, 291 292 /* U+0079 "y" */ 293 0xcf, 0x3c, 0xdf, 0xd, 0xe0, 294 295 /* U+007A "z" */ 296 0xfc, 0x63, 0x18, 0xfc, 297 298 /* U+007B "{" */ 299 0x1c, 0xc3, 0x38, 0x30, 0xc1, 0xc0, 300 301 /* U+007C "|" */ 302 0xff, 0xfc, 303 304 /* U+007D "}" */ 305 0xe0, 0xc3, 0x7, 0x30, 0xce, 0x0, 306 307 /* U+007E "~" */ 308 0x77, 0xb8, 309 310 /* U+007F "" */ 311 0xc1, 0x42, 0xbd, 0x2c, 0x40, 0x81, 0x0 312 }; 313 314 315 /*--------------------- 316 * GLYPH DESCRIPTION 317 *--------------------*/ 318 319 static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = { 320 {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */, 321 {.bitmap_index = 0, .adv_w = 128, .box_w = 1, .box_h = 1, .ofs_x = 0, .ofs_y = 8}, 322 {.bitmap_index = 1, .adv_w = 128, .box_w = 2, .box_h = 7, .ofs_x = 3, .ofs_y = 1}, 323 {.bitmap_index = 3, .adv_w = 128, .box_w = 6, .box_h = 3, .ofs_x = 1, .ofs_y = 5}, 324 {.bitmap_index = 6, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 325 {.bitmap_index = 13, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 326 {.bitmap_index = 19, .adv_w = 128, .box_w = 7, .box_h = 6, .ofs_x = 0, .ofs_y = 1}, 327 {.bitmap_index = 25, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 328 {.bitmap_index = 32, .adv_w = 128, .box_w = 3, .box_h = 3, .ofs_x = 2, .ofs_y = 5}, 329 {.bitmap_index = 34, .adv_w = 128, .box_w = 4, .box_h = 7, .ofs_x = 2, .ofs_y = 1}, 330 {.bitmap_index = 38, .adv_w = 128, .box_w = 4, .box_h = 7, .ofs_x = 2, .ofs_y = 1}, 331 {.bitmap_index = 42, .adv_w = 128, .box_w = 8, .box_h = 5, .ofs_x = 0, .ofs_y = 2}, 332 {.bitmap_index = 47, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 2}, 333 {.bitmap_index = 51, .adv_w = 128, .box_w = 3, .box_h = 3, .ofs_x = 2, .ofs_y = 0}, 334 {.bitmap_index = 53, .adv_w = 128, .box_w = 6, .box_h = 1, .ofs_x = 1, .ofs_y = 4}, 335 {.bitmap_index = 54, .adv_w = 128, .box_w = 2, .box_h = 2, .ofs_x = 3, .ofs_y = 1}, 336 {.bitmap_index = 55, .adv_w = 128, .box_w = 8, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 337 {.bitmap_index = 62, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 338 {.bitmap_index = 68, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 339 {.bitmap_index = 74, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 340 {.bitmap_index = 80, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 341 {.bitmap_index = 86, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 342 {.bitmap_index = 93, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 343 {.bitmap_index = 99, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 344 {.bitmap_index = 105, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 345 {.bitmap_index = 111, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 346 {.bitmap_index = 117, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 347 {.bitmap_index = 123, .adv_w = 128, .box_w = 2, .box_h = 6, .ofs_x = 3, .ofs_y = 1}, 348 {.bitmap_index = 125, .adv_w = 128, .box_w = 3, .box_h = 7, .ofs_x = 2, .ofs_y = 0}, 349 {.bitmap_index = 128, .adv_w = 128, .box_w = 5, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 350 {.bitmap_index = 133, .adv_w = 128, .box_w = 6, .box_h = 3, .ofs_x = 1, .ofs_y = 3}, 351 {.bitmap_index = 136, .adv_w = 128, .box_w = 5, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 352 {.bitmap_index = 141, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 353 {.bitmap_index = 147, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 354 {.bitmap_index = 154, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 355 {.bitmap_index = 160, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 356 {.bitmap_index = 166, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 357 {.bitmap_index = 172, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 358 {.bitmap_index = 178, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 359 {.bitmap_index = 184, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 360 {.bitmap_index = 190, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 361 {.bitmap_index = 196, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 362 {.bitmap_index = 202, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 363 {.bitmap_index = 208, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 364 {.bitmap_index = 214, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 365 {.bitmap_index = 221, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 366 {.bitmap_index = 227, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 367 {.bitmap_index = 234, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 368 {.bitmap_index = 241, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 369 {.bitmap_index = 247, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 370 {.bitmap_index = 253, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 371 {.bitmap_index = 259, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 372 {.bitmap_index = 265, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 373 {.bitmap_index = 271, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 374 {.bitmap_index = 277, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 375 {.bitmap_index = 283, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 376 {.bitmap_index = 289, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 377 {.bitmap_index = 296, .adv_w = 128, .box_w = 8, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 378 {.bitmap_index = 303, .adv_w = 128, .box_w = 8, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 379 {.bitmap_index = 310, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 380 {.bitmap_index = 316, .adv_w = 128, .box_w = 4, .box_h = 7, .ofs_x = 2, .ofs_y = 1}, 381 {.bitmap_index = 320, .adv_w = 128, .box_w = 8, .box_h = 7, .ofs_x = 0, .ofs_y = 1}, 382 {.bitmap_index = 327, .adv_w = 128, .box_w = 4, .box_h = 7, .ofs_x = 2, .ofs_y = 1}, 383 {.bitmap_index = 331, .adv_w = 128, .box_w = 7, .box_h = 4, .ofs_x = 0, .ofs_y = 4}, 384 {.bitmap_index = 335, .adv_w = 128, .box_w = 8, .box_h = 1, .ofs_x = 0, .ofs_y = 0}, 385 {.bitmap_index = 336, .adv_w = 128, .box_w = 4, .box_h = 3, .ofs_x = 3, .ofs_y = 5}, 386 {.bitmap_index = 338, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 387 {.bitmap_index = 342, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 388 {.bitmap_index = 348, .adv_w = 128, .box_w = 5, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 389 {.bitmap_index = 352, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 390 {.bitmap_index = 358, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 391 {.bitmap_index = 362, .adv_w = 128, .box_w = 5, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 392 {.bitmap_index = 367, .adv_w = 128, .box_w = 6, .box_h = 6, .ofs_x = 1, .ofs_y = 0}, 393 {.bitmap_index = 372, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 394 {.bitmap_index = 378, .adv_w = 128, .box_w = 5, .box_h = 7, .ofs_x = 2, .ofs_y = 1}, 395 {.bitmap_index = 383, .adv_w = 128, .box_w = 5, .box_h = 8, .ofs_x = 1, .ofs_y = 0}, 396 {.bitmap_index = 388, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 397 {.bitmap_index = 394, .adv_w = 128, .box_w = 5, .box_h = 7, .ofs_x = 2, .ofs_y = 1}, 398 {.bitmap_index = 399, .adv_w = 128, .box_w = 7, .box_h = 5, .ofs_x = 0, .ofs_y = 1}, 399 {.bitmap_index = 404, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 400 {.bitmap_index = 408, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 401 {.bitmap_index = 412, .adv_w = 128, .box_w = 6, .box_h = 6, .ofs_x = 1, .ofs_y = 0}, 402 {.bitmap_index = 417, .adv_w = 128, .box_w = 6, .box_h = 6, .ofs_x = 1, .ofs_y = 0}, 403 {.bitmap_index = 422, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 404 {.bitmap_index = 426, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 405 {.bitmap_index = 430, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 406 {.bitmap_index = 436, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 407 {.bitmap_index = 440, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 408 {.bitmap_index = 444, .adv_w = 128, .box_w = 7, .box_h = 5, .ofs_x = 0, .ofs_y = 1}, 409 {.bitmap_index = 449, .adv_w = 128, .box_w = 7, .box_h = 5, .ofs_x = 0, .ofs_y = 1}, 410 {.bitmap_index = 454, .adv_w = 128, .box_w = 6, .box_h = 6, .ofs_x = 1, .ofs_y = 0}, 411 {.bitmap_index = 459, .adv_w = 128, .box_w = 6, .box_h = 5, .ofs_x = 1, .ofs_y = 1}, 412 {.bitmap_index = 463, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 413 {.bitmap_index = 469, .adv_w = 128, .box_w = 2, .box_h = 7, .ofs_x = 3, .ofs_y = 1}, 414 {.bitmap_index = 471, .adv_w = 128, .box_w = 6, .box_h = 7, .ofs_x = 1, .ofs_y = 1}, 415 {.bitmap_index = 477, .adv_w = 128, .box_w = 7, .box_h = 2, .ofs_x = 0, .ofs_y = 6}, 416 {.bitmap_index = 479, .adv_w = 128, .box_w = 7, .box_h = 7, .ofs_x = 0, .ofs_y = 1} 417 }; 418 419 /*--------------------- 420 * CHARACTER MAPPING 421 *--------------------*/ 422 423 424 425 /*Collect the unicode lists and glyph_id offsets*/ 426 static const lv_font_fmt_txt_cmap_t cmaps[] = { 427 { 428 .range_start = 32, .range_length = 96, .glyph_id_start = 1, 429 .unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY 430 } 431 }; 432 433 434 435 /*-------------------- 436 * ALL CUSTOM DATA 437 *--------------------*/ 438 439 #if LV_VERSION_CHECK(8, 0, 0) 440 /*Store all the custom data of the font*/ 441 static lv_font_fmt_txt_glyph_cache_t cache; 442 static const lv_font_fmt_txt_dsc_t font_dsc = { 443 #else 444 static lv_font_fmt_txt_dsc_t font_dsc = { 445 #endif 446 .glyph_bitmap = glyph_bitmap, 447 .glyph_dsc = glyph_dsc, 448 .cmaps = cmaps, 449 .kern_dsc = NULL, 450 .kern_scale = 0, 451 .cmap_num = 1, 452 .bpp = 1, 453 .kern_classes = 0, 454 .bitmap_format = 0, 455 #if LV_VERSION_CHECK(8, 0, 0) 456 .cache = &cache 457 #endif 458 }; 459 460 461 /*----------------- 462 * PUBLIC FONT 463 *----------------*/ 464 465 /*Initialize a public general font descriptor*/ 466 #if LV_VERSION_CHECK(8, 0, 0) 467 const lv_font_t lv_font_unscii_8 = { 468 #else 469 lv_font_t lv_font_unscii_8 = { 470 #endif 471 .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/ 472 .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/ 473 .line_height = 9, /*The maximum line height required by the font*/ 474 .base_line = 0, /*Baseline measured from the bottom of the line*/ 475 #if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0) 476 .subpx = LV_FONT_SUBPX_NONE, 477 #endif 478 #if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8 479 .underline_position = 0, 480 .underline_thickness = 0, 481 #endif 482 .dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */ 483 }; 484 485 486 487 #endif /*#if LV_FONT_UNSCII_8*/ 488