159 lines
9.1 KiB
C
159 lines
9.1 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t dejavusans_12pt7bBitmaps[] = {
|
|
0x00, 0xFD, 0x80, 0xB6, 0xD0, 0x09, 0x09, 0x04, 0x8F, 0xF1, 0x21, 0x23,
|
|
0xFC, 0x48, 0x24, 0x34, 0x00, 0x10, 0xFA, 0x4C, 0x87, 0x03, 0xC4, 0xC9,
|
|
0x7C, 0x20, 0x40, 0x60, 0x92, 0x22, 0x48, 0x49, 0x06, 0x4C, 0x12, 0x42,
|
|
0x48, 0x89, 0x20, 0xC0, 0x38, 0x22, 0x10, 0x04, 0x05, 0x0C, 0x46, 0x15,
|
|
0x86, 0x7C, 0x80, 0xF0, 0x69, 0x49, 0x24, 0x89, 0x10, 0x89, 0x12, 0x49,
|
|
0x29, 0x40, 0x11, 0x25, 0xF1, 0xCD, 0x62, 0x00, 0x08, 0x04, 0x02, 0x01,
|
|
0x0F, 0xF8, 0x40, 0x20, 0x10, 0x08, 0x00, 0x58, 0xE0, 0xC0, 0x11, 0x22,
|
|
0x26, 0x44, 0x48, 0x80, 0x79, 0x28, 0x61, 0x86, 0x18, 0x52, 0x78, 0xE1,
|
|
0x08, 0x42, 0x10, 0x84, 0xF8, 0x7A, 0x30, 0x41, 0x08, 0x42, 0x10, 0xFC,
|
|
0x7A, 0x10, 0x41, 0x38, 0x10, 0x61, 0x78, 0x18, 0xA2, 0x92, 0x4A, 0x2F,
|
|
0xC2, 0x08, 0xFA, 0x08, 0x3E, 0x0C, 0x10, 0x63, 0x78, 0x39, 0x18, 0x2E,
|
|
0xCE, 0x18, 0x53, 0x78, 0xFC, 0x10, 0x82, 0x10, 0x42, 0x08, 0x40, 0x7A,
|
|
0x18, 0x61, 0x7A, 0x18, 0x61, 0x78, 0x7B, 0x28, 0x61, 0xCD, 0xD0, 0x62,
|
|
0x70, 0xC6, 0x50, 0x16, 0x01, 0x0E, 0x70, 0x80, 0x70, 0x0E, 0x01, 0xFF,
|
|
0x00, 0x00, 0xFF, 0x80, 0x70, 0x0E, 0x01, 0x0E, 0x70, 0x80, 0x74, 0x42,
|
|
0x22, 0x10, 0x04, 0x20, 0x1F, 0x04, 0x19, 0x01, 0x47, 0x99, 0x13, 0x22,
|
|
0x64, 0x54, 0x7C, 0x40, 0x04, 0x10, 0x7C, 0x00, 0x08, 0x0A, 0x05, 0x04,
|
|
0x42, 0x23, 0xF9, 0x04, 0x82, 0x80, 0x80, 0xFD, 0x06, 0x0C, 0x1F, 0xD0,
|
|
0x60, 0xC1, 0xFC, 0x3C, 0x86, 0x04, 0x08, 0x10, 0x20, 0x21, 0x3C, 0xFC,
|
|
0x86, 0x81, 0x81, 0x81, 0x81, 0x81, 0x86, 0xFC, 0xFE, 0x08, 0x20, 0xFE,
|
|
0x08, 0x20, 0xFC, 0xFC, 0x21, 0x0F, 0xC2, 0x10, 0x80, 0x3E, 0x41, 0x80,
|
|
0x80, 0x87, 0x81, 0x81, 0x41, 0x3E, 0x81, 0x81, 0x81, 0x81, 0xFF, 0x81,
|
|
0x81, 0x81, 0x81, 0xFF, 0x80, 0x24, 0x92, 0x49, 0x24, 0xE0, 0x85, 0x12,
|
|
0x45, 0x0C, 0x14, 0x24, 0x44, 0x84, 0x82, 0x08, 0x20, 0x82, 0x08, 0x20,
|
|
0xFC, 0xC1, 0xE0, 0xE8, 0xB4, 0x59, 0x4C, 0xA6, 0x23, 0x01, 0x80, 0x80,
|
|
0xC1, 0xC1, 0xA1, 0x91, 0x99, 0x89, 0x85, 0x83, 0x83, 0x3C, 0x42, 0x81,
|
|
0x81, 0x81, 0x81, 0x81, 0x42, 0x3C, 0xFA, 0x38, 0x61, 0x8F, 0xE8, 0x20,
|
|
0x80, 0x3C, 0x42, 0x81, 0x81, 0x81, 0x81, 0x81, 0x42, 0x3C, 0x04, 0x02,
|
|
0xF9, 0x0A, 0x14, 0x2F, 0x91, 0x21, 0x42, 0x82, 0x7D, 0x86, 0x06, 0x07,
|
|
0xC0, 0xC0, 0xC3, 0x7C, 0xFE, 0x20, 0x40, 0x81, 0x02, 0x04, 0x08, 0x10,
|
|
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0xC3, 0x3C, 0x80, 0xC0, 0x50,
|
|
0x48, 0x22, 0x21, 0x10, 0x50, 0x28, 0x08, 0x00, 0x84, 0x30, 0x85, 0x11,
|
|
0x25, 0x24, 0xA4, 0x55, 0x0A, 0xA0, 0x88, 0x11, 0x00, 0xC3, 0x42, 0x24,
|
|
0x18, 0x18, 0x18, 0x24, 0x42, 0xC3, 0x82, 0x89, 0x11, 0x42, 0x82, 0x04,
|
|
0x08, 0x10, 0xFF, 0x02, 0x04, 0x08, 0x08, 0x10, 0x20, 0x40, 0xFF, 0xF2,
|
|
0x49, 0x24, 0x92, 0x70, 0x88, 0x44, 0x46, 0x22, 0x21, 0x10, 0xE4, 0x92,
|
|
0x49, 0x24, 0xF0, 0x18, 0x3C, 0x66, 0xC3, 0xFE, 0x44, 0x7A, 0x10, 0x5F,
|
|
0x86, 0x37, 0x40, 0x82, 0x08, 0x20, 0xFB, 0x38, 0x61, 0x87, 0x3F, 0x80,
|
|
0x76, 0x61, 0x08, 0x65, 0xC0, 0x04, 0x10, 0x41, 0x7F, 0x38, 0x61, 0x87,
|
|
0x37, 0xC0, 0x7B, 0x38, 0x7F, 0x83, 0x17, 0x80, 0x34, 0x44, 0xF4, 0x44,
|
|
0x44, 0x40, 0x7F, 0x38, 0x61, 0x87, 0x37, 0xC1, 0x4C, 0xE0, 0x82, 0x08,
|
|
0x20, 0xBB, 0x18, 0x61, 0x86, 0x18, 0x40, 0x9F, 0xC0, 0x41, 0x55, 0x55,
|
|
0xC0, 0x82, 0x08, 0x20, 0x8A, 0x4A, 0x30, 0xA2, 0x48, 0x80, 0xFF, 0xE0,
|
|
0xB9, 0xD8, 0xC6, 0x10, 0xC2, 0x18, 0x43, 0x08, 0x61, 0x08, 0xBB, 0x18,
|
|
0x61, 0x86, 0x18, 0x40, 0x7B, 0x38, 0x61, 0x87, 0x37, 0x80, 0xFB, 0x38,
|
|
0x61, 0x87, 0x3F, 0xA0, 0x82, 0x00, 0x7F, 0x38, 0x61, 0x87, 0x37, 0xC1,
|
|
0x04, 0x10, 0xBC, 0x88, 0x88, 0x80, 0x74, 0x60, 0xE0, 0xC5, 0xC0, 0x44,
|
|
0xF4, 0x44, 0x44, 0x70, 0x86, 0x18, 0x61, 0x86, 0x37, 0x40, 0x83, 0x05,
|
|
0x12, 0x22, 0x85, 0x04, 0x00, 0x88, 0xC4, 0x52, 0x4A, 0xA5, 0x51, 0x10,
|
|
0x88, 0x82, 0x88, 0xA0, 0x82, 0x88, 0xA0, 0x80, 0x82, 0x89, 0x11, 0x42,
|
|
0x82, 0x04, 0x10, 0x21, 0x80, 0xF8, 0x44, 0x44, 0x43, 0xE0, 0x39, 0x08,
|
|
0x42, 0x60, 0x84, 0x21, 0x08, 0x30, 0xFF, 0xF8, 0xE1, 0x08, 0x42, 0x0C,
|
|
0x84, 0x21, 0x09, 0x80, 0x71, 0x8E };
|
|
|
|
const GFXglyph dejavusans_12pt7bGlyphs[] = {
|
|
{ 0, 1, 1, 4, 0, 0 }, // 0x20 ' '
|
|
{ 1, 1, 9, 5, 2, -8 }, // 0x21 '!'
|
|
{ 3, 3, 4, 5, 1, -8 }, // 0x22 '"'
|
|
{ 5, 9, 10, 11, 1, -9 }, // 0x23 '#'
|
|
{ 17, 7, 11, 8, 1, -8 }, // 0x24 '$'
|
|
{ 27, 11, 9, 12, 0, -8 }, // 0x25 '%'
|
|
{ 40, 9, 9, 11, 1, -8 }, // 0x26 '&'
|
|
{ 51, 1, 4, 3, 1, -8 }, // 0x27 '''
|
|
{ 52, 3, 12, 5, 1, -10 }, // 0x28 '('
|
|
{ 57, 3, 12, 5, 1, -10 }, // 0x29 ')'
|
|
{ 62, 7, 6, 7, 0, -8 }, // 0x2A '*'
|
|
{ 68, 9, 9, 11, 1, -8 }, // 0x2B '+'
|
|
{ 79, 2, 3, 4, 1, -1 }, // 0x2C ','
|
|
{ 80, 3, 1, 5, 1, -3 }, // 0x2D '-'
|
|
{ 81, 1, 2, 4, 2, -1 }, // 0x2E '.'
|
|
{ 82, 4, 11, 4, 0, -8 }, // 0x2F '/'
|
|
{ 88, 6, 9, 8, 1, -8 }, // 0x30 '0'
|
|
{ 95, 5, 9, 8, 2, -8 }, // 0x31 '1'
|
|
{ 101, 6, 9, 8, 1, -8 }, // 0x32 '2'
|
|
{ 108, 6, 9, 8, 1, -8 }, // 0x33 '3'
|
|
{ 115, 6, 9, 8, 1, -8 }, // 0x34 '4'
|
|
{ 122, 6, 9, 8, 1, -8 }, // 0x35 '5'
|
|
{ 129, 6, 9, 8, 1, -8 }, // 0x36 '6'
|
|
{ 136, 6, 9, 8, 1, -8 }, // 0x37 '7'
|
|
{ 143, 6, 9, 8, 1, -8 }, // 0x38 '8'
|
|
{ 150, 6, 9, 8, 1, -8 }, // 0x39 '9'
|
|
{ 157, 1, 7, 4, 2, -6 }, // 0x3A ':'
|
|
{ 158, 2, 8, 4, 1, -6 }, // 0x3B ';'
|
|
{ 160, 8, 7, 11, 1, -7 }, // 0x3C '<'
|
|
{ 167, 8, 4, 11, 1, -5 }, // 0x3D '='
|
|
{ 171, 8, 7, 11, 1, -7 }, // 0x3E '>'
|
|
{ 178, 5, 9, 7, 1, -8 }, // 0x3F '?'
|
|
{ 184, 11, 11, 13, 1, -8 }, // 0x40 '@'
|
|
{ 200, 9, 9, 9, 0, -8 }, // 0x41 'A'
|
|
{ 211, 7, 9, 9, 1, -8 }, // 0x42 'B'
|
|
{ 219, 7, 9, 9, 1, -8 }, // 0x43 'C'
|
|
{ 227, 8, 9, 10, 1, -8 }, // 0x44 'D'
|
|
{ 236, 6, 9, 8, 1, -8 }, // 0x45 'E'
|
|
{ 243, 5, 9, 7, 1, -8 }, // 0x46 'F'
|
|
{ 249, 8, 9, 10, 1, -8 }, // 0x47 'G'
|
|
{ 258, 8, 9, 10, 1, -8 }, // 0x48 'H'
|
|
{ 267, 1, 9, 3, 1, -8 }, // 0x49 'I'
|
|
{ 269, 3, 12, 3, -1, -8 }, // 0x4A 'J'
|
|
{ 274, 7, 9, 8, 1, -8 }, // 0x4B 'K'
|
|
{ 282, 6, 9, 7, 1, -8 }, // 0x4C 'L'
|
|
{ 289, 9, 9, 11, 1, -8 }, // 0x4D 'M'
|
|
{ 300, 8, 9, 10, 1, -8 }, // 0x4E 'N'
|
|
{ 309, 8, 9, 10, 1, -8 }, // 0x4F 'O'
|
|
{ 318, 6, 9, 8, 1, -8 }, // 0x50 'P'
|
|
{ 325, 8, 11, 10, 1, -8 }, // 0x51 'Q'
|
|
{ 336, 7, 9, 8, 1, -8 }, // 0x52 'R'
|
|
{ 344, 7, 9, 9, 1, -8 }, // 0x53 'S'
|
|
{ 352, 7, 9, 7, 0, -8 }, // 0x54 'T'
|
|
{ 360, 8, 9, 10, 1, -8 }, // 0x55 'U'
|
|
{ 369, 9, 9, 9, 0, -8 }, // 0x56 'V'
|
|
{ 380, 11, 9, 11, 0, -8 }, // 0x57 'W'
|
|
{ 393, 8, 9, 8, 0, -8 }, // 0x58 'X'
|
|
{ 402, 7, 9, 7, 0, -8 }, // 0x59 'Y'
|
|
{ 410, 8, 9, 10, 1, -8 }, // 0x5A 'Z'
|
|
{ 419, 3, 12, 5, 1, -9 }, // 0x5B '['
|
|
{ 424, 4, 11, 4, 0, -8 }, // 0x5C '\'
|
|
{ 430, 3, 12, 5, 1, -9 }, // 0x5D ']'
|
|
{ 435, 8, 4, 11, 1, -8 }, // 0x5E '^'
|
|
{ 439, 7, 1, 7, 0, 3 }, // 0x5F '_'
|
|
{ 440, 3, 2, 7, 1, -9 }, // 0x60 '`'
|
|
{ 441, 6, 7, 8, 1, -6 }, // 0x61 'a'
|
|
{ 447, 6, 11, 8, 1, -10 }, // 0x62 'b'
|
|
{ 456, 5, 7, 7, 1, -6 }, // 0x63 'c'
|
|
{ 461, 6, 11, 8, 1, -10 }, // 0x64 'd'
|
|
{ 470, 6, 7, 8, 1, -6 }, // 0x65 'e'
|
|
{ 476, 4, 11, 4, 0, -10 }, // 0x66 'f'
|
|
{ 482, 6, 10, 8, 1, -6 }, // 0x67 'g'
|
|
{ 490, 6, 11, 8, 1, -10 }, // 0x68 'h'
|
|
{ 499, 1, 10, 3, 1, -9 }, // 0x69 'i'
|
|
{ 501, 2, 13, 3, 0, -9 }, // 0x6A 'j'
|
|
{ 505, 6, 11, 7, 1, -10 }, // 0x6B 'k'
|
|
{ 514, 1, 11, 3, 1, -10 }, // 0x6C 'l'
|
|
{ 516, 11, 7, 13, 1, -6 }, // 0x6D 'm'
|
|
{ 526, 6, 7, 8, 1, -6 }, // 0x6E 'n'
|
|
{ 532, 6, 7, 8, 1, -6 }, // 0x6F 'o'
|
|
{ 538, 6, 10, 8, 1, -6 }, // 0x70 'p'
|
|
{ 546, 6, 10, 8, 1, -6 }, // 0x71 'q'
|
|
{ 554, 4, 7, 5, 1, -6 }, // 0x72 'r'
|
|
{ 558, 5, 7, 7, 1, -6 }, // 0x73 's'
|
|
{ 563, 4, 9, 5, 0, -8 }, // 0x74 't'
|
|
{ 568, 6, 7, 8, 1, -6 }, // 0x75 'u'
|
|
{ 574, 7, 7, 7, 0, -6 }, // 0x76 'v'
|
|
{ 581, 9, 7, 9, 0, -6 }, // 0x77 'w'
|
|
{ 589, 7, 7, 7, 0, -6 }, // 0x78 'x'
|
|
{ 596, 7, 10, 7, 0, -6 }, // 0x79 'y'
|
|
{ 605, 5, 7, 7, 1, -6 }, // 0x7A 'z'
|
|
{ 610, 5, 12, 8, 2, -9 }, // 0x7B '{'
|
|
{ 618, 1, 13, 4, 2, -9 }, // 0x7C '|'
|
|
{ 620, 5, 12, 8, 2, -9 }, // 0x7D '}'
|
|
{ 628, 8, 2, 11, 1, -4 } }; // 0x7E '~'
|
|
|
|
const GFXfont dejavusans_12pt7b = {
|
|
(uint8_t *)dejavusans_12pt7bBitmaps,
|
|
(GFXglyph *)dejavusans_12pt7bGlyphs,
|
|
0x20, 0x7E, 12 };//B
|
|
|
|
// Approx. 1302 bytes
|