1 #include "../../lvgl.h" 2 3 /******************************************************************************* 4 * Size: 8 px 5 * Bpp: 1 6 * Opts: 7 ******************************************************************************/ 8 9 #ifndef LV_FONT_UNSCII_8 10 #define LV_FONT_UNSCII_8 1 11 #endif 12 13 #if LV_FONT_UNSCII_8 14 15 /*----------------- 16 * BITMAPS 17 *----------------*/ 18 19 /*Store the image of the glyphs*/ 20 static LV_ATTRIBUTE_LARGE_CONST const uint8_t gylph_bitmap[] = { 21 /* U+20 " " */ 22 23 /* U+21 "!" */ 24 0xf2, 25 26 /* U+22 "\"" */ 27 0x99, 0x90, 28 29 /* U+23 "#" */ 30 0x49, 0x2f, 0xd2, 0xfd, 0x24, 0x80, 31 32 /* U+24 "$" */ 33 0x23, 0xe8, 0xe2, 0xf8, 0x80, 34 35 /* U+25 "%" */ 36 0xc7, 0x21, 0x8, 0x4e, 0x30, 37 38 /* U+26 "&" */ 39 0x62, 0x49, 0x18, 0x96, 0x27, 0x40, 40 41 /* U+27 "'" */ 42 0x2a, 0x0, 43 44 /* U+28 "(" */ 45 0x2a, 0x48, 0x88, 46 47 /* U+29 ")" */ 48 0x88, 0x92, 0xa0, 49 50 /* U+2A "*" */ 51 0x25, 0x5c, 0x47, 0x54, 0x80, 52 53 /* U+2B "+" */ 54 0x21, 0x3e, 0x42, 0x0, 55 56 /* U+2C "," */ 57 0x58, 58 59 /* U+2D "-" */ 60 0xf8, 61 62 /* U+2E "." */ 63 0x80, 64 65 /* U+2F "/" */ 66 0x2, 0x8, 0x20, 0x82, 0x8, 0x20, 0x0, 67 68 /* U+30 "0" */ 69 0x74, 0x67, 0x5c, 0xc5, 0xc0, 70 71 /* U+31 "1" */ 72 0x23, 0x28, 0x42, 0x13, 0xe0, 73 74 /* U+32 "2" */ 75 0x74, 0x42, 0x26, 0x43, 0xe0, 76 77 /* U+33 "3" */ 78 0x74, 0x42, 0x60, 0xc5, 0xc0, 79 80 /* U+34 "4" */ 81 0x11, 0x95, 0x2f, 0x88, 0x40, 82 83 /* U+35 "5" */ 84 0xfc, 0x3c, 0x10, 0xc5, 0xc0, 85 86 /* U+36 "6" */ 87 0x3a, 0x21, 0xe8, 0xc5, 0xc0, 88 89 /* U+37 "7" */ 90 0xf8, 0x44, 0x44, 0x21, 0x0, 91 92 /* U+38 "8" */ 93 0x74, 0x62, 0xe8, 0xc5, 0xc0, 94 95 /* U+39 "9" */ 96 0x74, 0x62, 0xf0, 0x8b, 0x80, 97 98 /* U+3A ":" */ 99 0x90, 100 101 /* U+3B ";" */ 102 0x41, 0x60, 103 104 /* U+3C "<" */ 105 0x12, 0x48, 0x42, 0x10, 106 107 /* U+3D "=" */ 108 0xf8, 0x3e, 109 110 /* U+3E ">" */ 111 0x84, 0x21, 0x24, 0x80, 112 113 /* U+3F "?" */ 114 0x7a, 0x10, 0x84, 0x10, 0x1, 0x0, 115 116 /* U+40 "@" */ 117 0x7a, 0x19, 0x6b, 0x9a, 0x7, 0x80, 118 119 /* U+41 "A" */ 120 0x31, 0x28, 0x7f, 0x86, 0x18, 0x40, 121 122 /* U+42 "B" */ 123 0xfa, 0x18, 0x7e, 0x86, 0x1f, 0x80, 124 125 /* U+43 "C" */ 126 0x7a, 0x18, 0x20, 0x82, 0x17, 0x80, 127 128 /* U+44 "D" */ 129 0xf2, 0x28, 0x61, 0x86, 0x2f, 0x0, 130 131 /* U+45 "E" */ 132 0xfe, 0x8, 0x3c, 0x82, 0xf, 0xc0, 133 134 /* U+46 "F" */ 135 0xfe, 0x8, 0x3c, 0x82, 0x8, 0x0, 136 137 /* U+47 "G" */ 138 0x7a, 0x18, 0x27, 0x86, 0x17, 0x80, 139 140 /* U+48 "H" */ 141 0x86, 0x18, 0x7f, 0x86, 0x18, 0x40, 142 143 /* U+49 "I" */ 144 0xe9, 0x24, 0xb8, 145 146 /* U+4A "J" */ 147 0x8, 0x42, 0x10, 0xc5, 0xc0, 148 149 /* U+4B "K" */ 150 0x86, 0x29, 0x38, 0x92, 0x28, 0x40, 151 152 /* U+4C "L" */ 153 0x82, 0x8, 0x20, 0x82, 0xf, 0xc0, 154 155 /* U+4D "M" */ 156 0x87, 0x3b, 0x61, 0x86, 0x18, 0x40, 157 158 /* U+4E "N" */ 159 0x87, 0x1a, 0x65, 0x8e, 0x18, 0x40, 160 161 /* U+4F "O" */ 162 0x7a, 0x18, 0x61, 0x86, 0x17, 0x80, 163 164 /* U+50 "P" */ 165 0xfa, 0x18, 0x7e, 0x82, 0x8, 0x0, 166 167 /* U+51 "Q" */ 168 0x7a, 0x18, 0x61, 0x96, 0x27, 0x40, 169 170 /* U+52 "R" */ 171 0xfa, 0x18, 0x7e, 0x92, 0x28, 0x40, 172 173 /* U+53 "S" */ 174 0x7a, 0x18, 0x1e, 0x6, 0x17, 0x80, 175 176 /* U+54 "T" */ 177 0xf9, 0x8, 0x42, 0x10, 0x80, 178 179 /* U+55 "U" */ 180 0x86, 0x18, 0x61, 0x86, 0x17, 0x80, 181 182 /* U+56 "V" */ 183 0x86, 0x18, 0x61, 0x85, 0x23, 0x0, 184 185 /* U+57 "W" */ 186 0x86, 0x18, 0x61, 0xb7, 0x38, 0x40, 187 188 /* U+58 "X" */ 189 0x86, 0x14, 0x8c, 0x4a, 0x18, 0x40, 190 191 /* U+59 "Y" */ 192 0x8c, 0x62, 0xe2, 0x10, 0x80, 193 194 /* U+5A "Z" */ 195 0xf8, 0x44, 0x44, 0x43, 0xe0, 196 197 /* U+5B "[" */ 198 0xf2, 0x49, 0x38, 199 200 /* U+5C "\\" */ 201 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 202 203 /* U+5D "]" */ 204 0xe4, 0x92, 0x78, 205 206 /* U+5E "^" */ 207 0x22, 0xa2, 208 209 /* U+5F "_" */ 210 0xf8, 211 212 /* U+60 "`" */ 213 0x88, 0x80, 214 215 /* U+61 "a" */ 216 0x70, 0x5f, 0x17, 0x80, 217 218 /* U+62 "b" */ 219 0x84, 0x3d, 0x18, 0xc7, 0xc0, 220 221 /* U+63 "c" */ 222 0x74, 0x61, 0x17, 0x0, 223 224 /* U+64 "d" */ 225 0x8, 0x5f, 0x18, 0xc5, 0xe0, 226 227 /* U+65 "e" */ 228 0x74, 0x7f, 0x7, 0x0, 229 230 /* U+66 "f" */ 231 0x18, 0x92, 0x3e, 0x20, 0x82, 0x0, 232 233 /* U+67 "g" */ 234 0x7c, 0x62, 0xf0, 0xb8, 235 236 /* U+68 "h" */ 237 0x84, 0x3d, 0x18, 0xc6, 0x20, 238 239 /* U+69 "i" */ 240 0x43, 0x24, 0xb8, 241 242 /* U+6A "j" */ 243 0x10, 0x31, 0x11, 0x96, 244 245 /* U+6B "k" */ 246 0x84, 0x23, 0x2e, 0x4a, 0x20, 247 248 /* U+6C "l" */ 249 0xc9, 0x24, 0xb8, 250 251 /* U+6D "m" */ 252 0xd5, 0x6b, 0x5a, 0x80, 253 254 /* U+6E "n" */ 255 0xf4, 0x63, 0x18, 0x80, 256 257 /* U+6F "o" */ 258 0x74, 0x63, 0x17, 0x0, 259 260 /* U+70 "p" */ 261 0xf4, 0x63, 0xe8, 0x40, 262 263 /* U+71 "q" */ 264 0x7c, 0x62, 0xf0, 0x84, 265 266 /* U+72 "r" */ 267 0xbe, 0x21, 0x8, 0x0, 268 269 /* U+73 "s" */ 270 0x7c, 0x1c, 0x1f, 0x0, 271 272 /* U+74 "t" */ 273 0x42, 0x3c, 0x84, 0x24, 0xc0, 274 275 /* U+75 "u" */ 276 0x8c, 0x63, 0x17, 0x0, 277 278 /* U+76 "v" */ 279 0x8c, 0x62, 0xa2, 0x0, 280 281 /* U+77 "w" */ 282 0x8d, 0x6b, 0x55, 0x0, 283 284 /* U+78 "x" */ 285 0x8a, 0x88, 0xa8, 0x80, 286 287 /* U+79 "y" */ 288 0x8c, 0x62, 0xf0, 0xb8, 289 290 /* U+7A "z" */ 291 0xf8, 0x88, 0x8f, 0x80, 292 293 /* U+7B "{" */ 294 0x34, 0x48, 0x44, 0x30, 295 296 /* U+7C "|" */ 297 0xff, 298 299 /* U+7D "}" */ 300 0xc2, 0x21, 0x22, 0xc0, 301 302 /* U+7E "~" */ 303 0x45, 0x44, 304 305 /* U+7F "" */ 306 0xc1, 0x42, 0xbd, 0x2c, 0x40, 0x81, 0x0 307 }; 308 309 310 /*--------------------- 311 * GLYPH DESCRIPTION 312 *--------------------*/ 313 314 static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = { 315 {.bitmap_index = 0, .adv_w = 0, .box_h = 0, .box_w = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */, 316 {.bitmap_index = 0, .adv_w = 128, .box_h = 0, .box_w = 0, .ofs_x = 0, .ofs_y = 0}, 317 {.bitmap_index = 0, .adv_w = 128, .box_h = 7, .box_w = 1, .ofs_x = 3, .ofs_y = -1}, 318 {.bitmap_index = 1, .adv_w = 128, .box_h = 3, .box_w = 4, .ofs_x = 2, .ofs_y = 3}, 319 {.bitmap_index = 3, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 320 {.bitmap_index = 9, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 321 {.bitmap_index = 14, .adv_w = 128, .box_h = 6, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 322 {.bitmap_index = 19, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 323 {.bitmap_index = 25, .adv_w = 128, .box_h = 3, .box_w = 3, .ofs_x = 2, .ofs_y = 3}, 324 {.bitmap_index = 27, .adv_w = 128, .box_h = 7, .box_w = 3, .ofs_x = 2, .ofs_y = -1}, 325 {.bitmap_index = 30, .adv_w = 128, .box_h = 7, .box_w = 3, .ofs_x = 2, .ofs_y = -1}, 326 {.bitmap_index = 33, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 327 {.bitmap_index = 38, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = 0}, 328 {.bitmap_index = 42, .adv_w = 128, .box_h = 3, .box_w = 2, .ofs_x = 3, .ofs_y = -2}, 329 {.bitmap_index = 43, .adv_w = 128, .box_h = 1, .box_w = 5, .ofs_x = 1, .ofs_y = 1}, 330 {.bitmap_index = 44, .adv_w = 128, .box_h = 1, .box_w = 1, .ofs_x = 3, .ofs_y = -1}, 331 {.bitmap_index = 45, .adv_w = 128, .box_h = 7, .box_w = 7, .ofs_x = 0, .ofs_y = -1}, 332 {.bitmap_index = 52, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 333 {.bitmap_index = 57, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 334 {.bitmap_index = 62, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 335 {.bitmap_index = 67, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 336 {.bitmap_index = 72, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 337 {.bitmap_index = 77, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 338 {.bitmap_index = 82, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 339 {.bitmap_index = 87, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 340 {.bitmap_index = 92, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 341 {.bitmap_index = 97, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 342 {.bitmap_index = 102, .adv_w = 128, .box_h = 4, .box_w = 1, .ofs_x = 3, .ofs_y = 0}, 343 {.bitmap_index = 103, .adv_w = 128, .box_h = 6, .box_w = 2, .ofs_x = 2, .ofs_y = -2}, 344 {.bitmap_index = 105, .adv_w = 128, .box_h = 7, .box_w = 4, .ofs_x = 1, .ofs_y = -1}, 345 {.bitmap_index = 109, .adv_w = 128, .box_h = 3, .box_w = 5, .ofs_x = 1, .ofs_y = 1}, 346 {.bitmap_index = 111, .adv_w = 128, .box_h = 7, .box_w = 4, .ofs_x = 2, .ofs_y = -1}, 347 {.bitmap_index = 115, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 348 {.bitmap_index = 121, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 349 {.bitmap_index = 127, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 350 {.bitmap_index = 133, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 351 {.bitmap_index = 139, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 352 {.bitmap_index = 145, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 353 {.bitmap_index = 151, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 354 {.bitmap_index = 157, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 355 {.bitmap_index = 163, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 356 {.bitmap_index = 169, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 357 {.bitmap_index = 175, .adv_w = 128, .box_h = 7, .box_w = 3, .ofs_x = 2, .ofs_y = -1}, 358 {.bitmap_index = 178, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 359 {.bitmap_index = 183, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 360 {.bitmap_index = 189, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 361 {.bitmap_index = 195, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 362 {.bitmap_index = 201, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 363 {.bitmap_index = 207, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 364 {.bitmap_index = 213, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 365 {.bitmap_index = 219, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 366 {.bitmap_index = 225, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 367 {.bitmap_index = 231, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 368 {.bitmap_index = 237, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 369 {.bitmap_index = 242, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 370 {.bitmap_index = 248, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 371 {.bitmap_index = 254, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 372 {.bitmap_index = 260, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 373 {.bitmap_index = 266, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 374 {.bitmap_index = 271, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 375 {.bitmap_index = 276, .adv_w = 128, .box_h = 7, .box_w = 3, .ofs_x = 2, .ofs_y = -1}, 376 {.bitmap_index = 279, .adv_w = 128, .box_h = 7, .box_w = 7, .ofs_x = 0, .ofs_y = -1}, 377 {.bitmap_index = 286, .adv_w = 128, .box_h = 7, .box_w = 3, .ofs_x = 2, .ofs_y = -1}, 378 {.bitmap_index = 289, .adv_w = 128, .box_h = 3, .box_w = 5, .ofs_x = 1, .ofs_y = 3}, 379 {.bitmap_index = 291, .adv_w = 128, .box_h = 1, .box_w = 5, .ofs_x = 1, .ofs_y = -2}, 380 {.bitmap_index = 292, .adv_w = 128, .box_h = 3, .box_w = 3, .ofs_x = 2, .ofs_y = 3}, 381 {.bitmap_index = 294, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 382 {.bitmap_index = 298, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 383 {.bitmap_index = 303, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 384 {.bitmap_index = 307, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 385 {.bitmap_index = 312, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 386 {.bitmap_index = 316, .adv_w = 128, .box_h = 7, .box_w = 6, .ofs_x = 1, .ofs_y = -1}, 387 {.bitmap_index = 322, .adv_w = 128, .box_h = 6, .box_w = 5, .ofs_x = 1, .ofs_y = -2}, 388 {.bitmap_index = 326, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 389 {.bitmap_index = 331, .adv_w = 128, .box_h = 7, .box_w = 3, .ofs_x = 2, .ofs_y = -1}, 390 {.bitmap_index = 334, .adv_w = 128, .box_h = 8, .box_w = 4, .ofs_x = 2, .ofs_y = -2}, 391 {.bitmap_index = 338, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 392 {.bitmap_index = 343, .adv_w = 128, .box_h = 7, .box_w = 3, .ofs_x = 2, .ofs_y = -1}, 393 {.bitmap_index = 346, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 394 {.bitmap_index = 350, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 395 {.bitmap_index = 354, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 396 {.bitmap_index = 358, .adv_w = 128, .box_h = 6, .box_w = 5, .ofs_x = 1, .ofs_y = -2}, 397 {.bitmap_index = 362, .adv_w = 128, .box_h = 6, .box_w = 5, .ofs_x = 1, .ofs_y = -2}, 398 {.bitmap_index = 366, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 399 {.bitmap_index = 370, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 400 {.bitmap_index = 374, .adv_w = 128, .box_h = 7, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 401 {.bitmap_index = 379, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 402 {.bitmap_index = 383, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 403 {.bitmap_index = 387, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 404 {.bitmap_index = 391, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 405 {.bitmap_index = 395, .adv_w = 128, .box_h = 6, .box_w = 5, .ofs_x = 1, .ofs_y = -2}, 406 {.bitmap_index = 399, .adv_w = 128, .box_h = 5, .box_w = 5, .ofs_x = 1, .ofs_y = -1}, 407 {.bitmap_index = 403, .adv_w = 128, .box_h = 7, .box_w = 4, .ofs_x = 1, .ofs_y = -1}, 408 {.bitmap_index = 407, .adv_w = 128, .box_h = 8, .box_w = 1, .ofs_x = 3, .ofs_y = -2}, 409 {.bitmap_index = 408, .adv_w = 128, .box_h = 7, .box_w = 4, .ofs_x = 2, .ofs_y = -1}, 410 {.bitmap_index = 412, .adv_w = 128, .box_h = 3, .box_w = 5, .ofs_x = 1, .ofs_y = 3}, 411 {.bitmap_index = 414, .adv_w = 128, .box_h = 7, .box_w = 7, .ofs_x = 0, .ofs_y = -1} 412 }; 413 414 /*--------------------- 415 * CHARACTER MAPPING 416 *--------------------*/ 417 418 419 420 /*Collect the unicode lists and glyph_id offsets*/ 421 static const lv_font_fmt_txt_cmap_t cmaps[] = { 422 { 423 .range_start = 32, .range_length = 96, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY, 424 .glyph_id_start = 1, .unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0 425 } 426 }; 427 428 429 430 /*-------------------- 431 * ALL CUSTOM DATA 432 *--------------------*/ 433 434 /*Store all the custom data of the font*/ 435 static lv_font_fmt_txt_dsc_t font_dsc = { 436 .glyph_bitmap = gylph_bitmap, 437 .glyph_dsc = glyph_dsc, 438 .cmaps = cmaps, 439 .cmap_num = 1, 440 .bpp = 1, 441 442 .kern_scale = 0, 443 .kern_dsc = NULL, 444 .kern_classes = 0, 445 }; 446 447 448 /*----------------- 449 * PUBLIC FONT 450 *----------------*/ 451 452 /*Initialize a public general font descriptor*/ 453 lv_font_t lv_font_unscii_8 = { 454 .dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */ 455 .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/ 456 .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/ 457 .line_height = 8, /*The maximum line height required by the font*/ 458 .base_line = 2, /*Baseline measured from the bottom of the line*/ 459 }; 460 461 #endif /*#if LV_FONT_UNSCII_8*/ 462