154 lines
8.7 KiB
C
154 lines
8.7 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t roboto_12pt7bBitmaps[] = {
|
|
0x00, 0xFE, 0x80, 0xFC, 0x24, 0x4B, 0xF9, 0x44, 0x9F, 0x92, 0x24, 0x50,
|
|
0x21, 0xEC, 0xA3, 0xC1, 0xC0, 0xA3, 0x89, 0xE2, 0x00, 0xE0, 0xA4, 0xA4,
|
|
0xE8, 0x10, 0x16, 0x29, 0x49, 0x06, 0x71, 0x93, 0x23, 0x86, 0x12, 0xE3,
|
|
0x46, 0x7E, 0xE0, 0x29, 0x49, 0x24, 0x91, 0x22, 0x84, 0x22, 0x23, 0x33,
|
|
0x22, 0x24, 0x80, 0x25, 0x5C, 0xA5, 0x80, 0x10, 0x20, 0x47, 0xF1, 0x02,
|
|
0x04, 0x00, 0x58, 0xE0, 0x80, 0x08, 0x84, 0x22, 0x11, 0x08, 0x44, 0x00,
|
|
0x72, 0x28, 0xA3, 0x8E, 0x38, 0xA2, 0x70, 0x3F, 0x33, 0x33, 0x33, 0x30,
|
|
0x72, 0x28, 0x82, 0x10, 0xC6, 0x30, 0xFC, 0x74, 0x62, 0x17, 0x06, 0x31,
|
|
0x70, 0x0C, 0x38, 0x51, 0x22, 0x48, 0xBF, 0x82, 0x04, 0x7D, 0x04, 0x3E,
|
|
0x88, 0x18, 0x72, 0x78, 0x31, 0x08, 0x3E, 0xCA, 0x38, 0xF2, 0x78, 0xFE,
|
|
0x08, 0x10, 0x40, 0x83, 0x04, 0x18, 0x20, 0x72, 0x28, 0xA2, 0x72, 0x28,
|
|
0xE2, 0x78, 0x74, 0x63, 0x18, 0xBC, 0x23, 0x60, 0x82, 0x40, 0x05, 0x80,
|
|
0x04, 0x6E, 0x38, 0x18, 0x10, 0xF8, 0x01, 0xF0, 0x87, 0x06, 0x3E, 0x40,
|
|
0x79, 0x28, 0xC2, 0x18, 0xC2, 0x00, 0x30, 0x1F, 0x08, 0x64, 0x0A, 0x39,
|
|
0x92, 0x64, 0x99, 0x26, 0xD9, 0x9B, 0xA0, 0x06, 0x20, 0xF8, 0x18, 0x18,
|
|
0x3C, 0x24, 0x24, 0x66, 0x7E, 0x42, 0x81, 0xFA, 0x18, 0x61, 0xFA, 0x18,
|
|
0x61, 0xF8, 0x39, 0x8A, 0x0C, 0x08, 0x10, 0x20, 0xE2, 0x78, 0xF9, 0x1A,
|
|
0x14, 0x18, 0x30, 0xE1, 0x46, 0xF8, 0xFE, 0x08, 0x20, 0xFA, 0x08, 0x20,
|
|
0xFC, 0xFE, 0x08, 0x20, 0xFA, 0x08, 0x20, 0x80, 0x79, 0x8A, 0x0C, 0x08,
|
|
0xF0, 0x60, 0xA3, 0x3C, 0x83, 0x06, 0x0C, 0x1F, 0xF0, 0x60, 0xC1, 0x82,
|
|
0xFF, 0x80, 0x04, 0x10, 0x41, 0x04, 0x1C, 0x51, 0x78, 0x87, 0x12, 0x65,
|
|
0x8F, 0x12, 0x22, 0x42, 0x86, 0x82, 0x08, 0x20, 0x82, 0x08, 0x20, 0xFC,
|
|
0xC1, 0xE0, 0xF8, 0x74, 0x5A, 0x2C, 0xB6, 0x53, 0x19, 0x88, 0x80, 0x83,
|
|
0x87, 0x8D, 0x19, 0x33, 0x62, 0xC3, 0x86, 0x39, 0x8A, 0x0C, 0x18, 0x30,
|
|
0x60, 0xE2, 0x38, 0xF9, 0x0A, 0x1C, 0x2F, 0xD0, 0x20, 0x40, 0x80, 0x39,
|
|
0x8A, 0x0C, 0x18, 0x30, 0x60, 0xE2, 0x3C, 0x0C, 0xF9, 0x0A, 0x14, 0x2F,
|
|
0x91, 0x23, 0x42, 0x86, 0x7B, 0x18, 0x70, 0x38, 0x38, 0x61, 0x78, 0xFE,
|
|
0x20, 0x40, 0x81, 0x02, 0x04, 0x08, 0x10, 0x86, 0x18, 0x61, 0x86, 0x18,
|
|
0x61, 0x78, 0xC3, 0x42, 0x42, 0x66, 0x24, 0x24, 0x1C, 0x18, 0x18, 0xC6,
|
|
0x28, 0xC5, 0x19, 0xA5, 0x22, 0x94, 0x52, 0x8C, 0x51, 0x8C, 0x10, 0x80,
|
|
0xC3, 0x66, 0x24, 0x18, 0x18, 0x18, 0x24, 0x66, 0xC3, 0xC3, 0x46, 0x24,
|
|
0x2C, 0x18, 0x18, 0x18, 0x18, 0x18, 0xFC, 0x30, 0x84, 0x21, 0x84, 0x20,
|
|
0xFC, 0xEA, 0xAA, 0xAA, 0xC0, 0xC2, 0x10, 0x42, 0x10, 0x42, 0x08, 0x40,
|
|
0xD5, 0x55, 0x55, 0xC0, 0x23, 0x95, 0xB0, 0xFC, 0xC4, 0x74, 0x42, 0xF8,
|
|
0xC7, 0xE0, 0x82, 0x08, 0x3C, 0x8A, 0x28, 0xE2, 0x8B, 0xC0, 0x74, 0x61,
|
|
0x08, 0x45, 0xC0, 0x04, 0x10, 0x4F, 0x45, 0x1C, 0x51, 0x44, 0xF0, 0x74,
|
|
0x63, 0xF8, 0x45, 0xE0, 0x74, 0x4E, 0x44, 0x44, 0x44, 0x3D, 0x14, 0x71,
|
|
0x45, 0x13, 0xC1, 0x44, 0xE0, 0x84, 0x21, 0xF8, 0xC6, 0x31, 0x8C, 0x40,
|
|
0xBF, 0x80, 0x45, 0x55, 0x57, 0x82, 0x08, 0x26, 0x92, 0x8E, 0x24, 0x92,
|
|
0x30, 0xFF, 0xC0, 0xF7, 0xC4, 0x62, 0x31, 0x18, 0x8C, 0x46, 0x22, 0xFC,
|
|
0x63, 0x18, 0xC6, 0x20, 0x38, 0x8B, 0x1E, 0x3C, 0x68, 0x8E, 0x00, 0xF2,
|
|
0x28, 0xA3, 0x8A, 0x2F, 0x20, 0x82, 0x00, 0x3D, 0x1C, 0x71, 0xC5, 0x13,
|
|
0xC1, 0x04, 0x10, 0xF2, 0x49, 0x20, 0x74, 0x60, 0xE0, 0xC5, 0xC0, 0x44,
|
|
0xF4, 0x44, 0x44, 0x30, 0x8C, 0x63, 0x18, 0xC5, 0xE0, 0x85, 0x24, 0x92,
|
|
0x30, 0xC3, 0x00, 0xCC, 0xD3, 0x24, 0xC9, 0x4A, 0x33, 0x0C, 0xC2, 0x30,
|
|
0xCD, 0xA3, 0x04, 0x39, 0xAC, 0xC0, 0xC5, 0x24, 0x92, 0x30, 0xC3, 0x08,
|
|
0x23, 0x00, 0xF8, 0x8C, 0xC4, 0x43, 0xE0, 0x12, 0x22, 0x26, 0xC6, 0x22,
|
|
0x21, 0xFF, 0xE0, 0x84, 0x44, 0x46, 0x36, 0x44, 0x48, 0xF3, 0x38 };
|
|
|
|
const GFXglyph roboto_12pt7bGlyphs[] = {
|
|
{ 0, 1, 1, 3, 0, 0 }, // 0x20 ' '
|
|
{ 1, 1, 9, 3, 1, -8 }, // 0x21 '!'
|
|
{ 3, 2, 3, 4, 1, -9 }, // 0x22 '"'
|
|
{ 4, 7, 9, 8, 1, -8 }, // 0x23 '#'
|
|
{ 12, 6, 11, 7, 1, -9 }, // 0x24 '$'
|
|
{ 21, 8, 9, 10, 1, -8 }, // 0x25 '%'
|
|
{ 30, 7, 9, 8, 1, -8 }, // 0x26 '&'
|
|
{ 38, 1, 3, 2, 1, -9 }, // 0x27 '''
|
|
{ 39, 3, 13, 4, 1, -9 }, // 0x28 '('
|
|
{ 44, 4, 13, 5, 0, -9 }, // 0x29 ')'
|
|
{ 51, 5, 5, 6, 0, -8 }, // 0x2A '*'
|
|
{ 55, 7, 7, 7, 0, -7 }, // 0x2B '+'
|
|
{ 62, 2, 3, 3, 0, 0 }, // 0x2C ','
|
|
{ 63, 3, 1, 4, 0, -3 }, // 0x2D '-'
|
|
{ 64, 1, 1, 3, 1, 0 }, // 0x2E '.'
|
|
{ 65, 5, 10, 5, 0, -8 }, // 0x2F '/'
|
|
{ 72, 6, 9, 7, 1, -8 }, // 0x30 '0'
|
|
{ 79, 4, 9, 7, 1, -8 }, // 0x31 '1'
|
|
{ 84, 6, 9, 7, 1, -8 }, // 0x32 '2'
|
|
{ 91, 5, 9, 7, 1, -8 }, // 0x33 '3'
|
|
{ 97, 7, 9, 7, 0, -8 }, // 0x34 '4'
|
|
{ 105, 6, 9, 7, 1, -8 }, // 0x35 '5'
|
|
{ 112, 6, 9, 7, 1, -8 }, // 0x36 '6'
|
|
{ 119, 7, 9, 7, 0, -8 }, // 0x37 '7'
|
|
{ 127, 6, 9, 7, 1, -8 }, // 0x38 '8'
|
|
{ 134, 5, 9, 7, 1, -8 }, // 0x39 '9'
|
|
{ 140, 1, 7, 3, 1, -6 }, // 0x3A ':'
|
|
{ 141, 2, 9, 3, 0, -6 }, // 0x3B ';'
|
|
{ 144, 6, 6, 7, 0, -6 }, // 0x3C '<'
|
|
{ 149, 5, 4, 7, 1, -6 }, // 0x3D '='
|
|
{ 152, 5, 6, 7, 1, -6 }, // 0x3E '>'
|
|
{ 156, 6, 9, 6, 0, -8 }, // 0x3F '?'
|
|
{ 163, 10, 12, 12, 1, -8 }, // 0x40 '@'
|
|
{ 178, 8, 9, 8, 0, -8 }, // 0x41 'A'
|
|
{ 187, 6, 9, 8, 1, -8 }, // 0x42 'B'
|
|
{ 194, 7, 9, 8, 1, -8 }, // 0x43 'C'
|
|
{ 202, 7, 9, 9, 1, -8 }, // 0x44 'D'
|
|
{ 210, 6, 9, 7, 1, -8 }, // 0x45 'E'
|
|
{ 217, 6, 9, 7, 1, -8 }, // 0x46 'F'
|
|
{ 224, 7, 9, 9, 1, -8 }, // 0x47 'G'
|
|
{ 232, 7, 9, 9, 1, -8 }, // 0x48 'H'
|
|
{ 240, 1, 9, 4, 1, -8 }, // 0x49 'I'
|
|
{ 242, 6, 9, 7, 0, -8 }, // 0x4A 'J'
|
|
{ 249, 7, 9, 8, 1, -8 }, // 0x4B 'K'
|
|
{ 257, 6, 9, 7, 1, -8 }, // 0x4C 'L'
|
|
{ 264, 9, 9, 11, 1, -8 }, // 0x4D 'M'
|
|
{ 275, 7, 9, 9, 1, -8 }, // 0x4E 'N'
|
|
{ 283, 7, 9, 9, 1, -8 }, // 0x4F 'O'
|
|
{ 291, 7, 9, 8, 1, -8 }, // 0x50 'P'
|
|
{ 299, 7, 10, 9, 1, -8 }, // 0x51 'Q'
|
|
{ 308, 7, 9, 8, 1, -8 }, // 0x52 'R'
|
|
{ 316, 6, 9, 8, 1, -8 }, // 0x53 'S'
|
|
{ 323, 7, 9, 8, 0, -8 }, // 0x54 'T'
|
|
{ 331, 6, 9, 8, 1, -8 }, // 0x55 'U'
|
|
{ 338, 8, 9, 8, 0, -8 }, // 0x56 'V'
|
|
{ 347, 11, 9, 12, 0, -8 }, // 0x57 'W'
|
|
{ 360, 8, 9, 8, 0, -8 }, // 0x58 'X'
|
|
{ 369, 8, 9, 8, 0, -8 }, // 0x59 'Y'
|
|
{ 378, 6, 9, 8, 1, -8 }, // 0x5A 'Z'
|
|
{ 385, 2, 13, 3, 1, -10 }, // 0x5B '['
|
|
{ 389, 5, 10, 5, 0, -8 }, // 0x5C '\'
|
|
{ 396, 2, 13, 3, 0, -10 }, // 0x5D ']'
|
|
{ 400, 5, 4, 5, 0, -8 }, // 0x5E '^'
|
|
{ 403, 6, 1, 6, 0, 1 }, // 0x5F '_'
|
|
{ 404, 3, 2, 4, 0, -9 }, // 0x60 '`'
|
|
{ 405, 5, 7, 7, 1, -6 }, // 0x61 'a'
|
|
{ 410, 6, 10, 7, 1, -9 }, // 0x62 'b'
|
|
{ 418, 5, 7, 7, 1, -6 }, // 0x63 'c'
|
|
{ 423, 6, 10, 7, 0, -9 }, // 0x64 'd'
|
|
{ 431, 5, 7, 7, 1, -6 }, // 0x65 'e'
|
|
{ 436, 4, 10, 5, 1, -9 }, // 0x66 'f'
|
|
{ 441, 6, 10, 7, 0, -6 }, // 0x67 'g'
|
|
{ 449, 5, 10, 7, 1, -9 }, // 0x68 'h'
|
|
{ 456, 1, 9, 3, 1, -8 }, // 0x69 'i'
|
|
{ 458, 2, 12, 3, 0, -8 }, // 0x6A 'j'
|
|
{ 461, 6, 10, 7, 1, -9 }, // 0x6B 'k'
|
|
{ 469, 1, 10, 3, 1, -9 }, // 0x6C 'l'
|
|
{ 471, 9, 7, 11, 1, -6 }, // 0x6D 'm'
|
|
{ 479, 5, 7, 7, 1, -6 }, // 0x6E 'n'
|
|
{ 484, 7, 7, 7, 0, -6 }, // 0x6F 'o'
|
|
{ 491, 6, 10, 7, 1, -6 }, // 0x70 'p'
|
|
{ 499, 6, 10, 7, 0, -6 }, // 0x71 'q'
|
|
{ 507, 3, 7, 4, 1, -6 }, // 0x72 'r'
|
|
{ 510, 5, 7, 7, 1, -6 }, // 0x73 's'
|
|
{ 515, 4, 9, 4, 0, -8 }, // 0x74 't'
|
|
{ 520, 5, 7, 7, 1, -6 }, // 0x75 'u'
|
|
{ 525, 6, 7, 6, 0, -6 }, // 0x76 'v'
|
|
{ 531, 10, 7, 10, 0, -6 }, // 0x77 'w'
|
|
{ 540, 6, 7, 6, 0, -6 }, // 0x78 'x'
|
|
{ 546, 6, 10, 6, 0, -6 }, // 0x79 'y'
|
|
{ 554, 5, 7, 6, 1, -6 }, // 0x7A 'z'
|
|
{ 559, 4, 12, 4, 0, -9 }, // 0x7B '{'
|
|
{ 565, 1, 11, 3, 1, -8 }, // 0x7C '|'
|
|
{ 567, 4, 12, 4, 0, -9 }, // 0x7D '}'
|
|
{ 573, 7, 2, 9, 1, -4 } }; // 0x7E '~'
|
|
|
|
const GFXfont roboto_12pt7b = {
|
|
(uint8_t *)roboto_12pt7bBitmaps,
|
|
(GFXglyph *)roboto_12pt7bGlyphs,
|
|
0x20, 0x7E, 12 };//B
|
|
|
|
// Approx. 1247 bytes
|