169 lines
9.8 KiB
C
169 lines
9.8 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t dejavusans_13pt7bBitmaps[] = {
|
|
0x00, 0xFC, 0xC0, 0xB6, 0xD0, 0x09, 0x02, 0x40, 0x91, 0xFF, 0x12, 0x04,
|
|
0x8F, 0xF8, 0x98, 0x24, 0x09, 0x00, 0x10, 0x21, 0xF4, 0x99, 0x1A, 0x1F,
|
|
0x0B, 0x13, 0x25, 0xF0, 0x81, 0x00, 0x70, 0x88, 0x88, 0x89, 0x08, 0xB0,
|
|
0x8A, 0xE7, 0x51, 0x0D, 0x10, 0x91, 0x11, 0x11, 0x0E, 0x38, 0x11, 0x04,
|
|
0x00, 0x80, 0x50, 0x22, 0x18, 0x46, 0x0A, 0x43, 0x0F, 0x30, 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, 0xF0, 0xC0, 0x08, 0xC4, 0x23, 0x10, 0x8C, 0x42, 0x31,
|
|
0x00, 0x38, 0x8A, 0x0C, 0x18, 0x30, 0x60, 0xC1, 0x44, 0x70, 0x65, 0x08,
|
|
0x42, 0x10, 0x84, 0x27, 0xC0, 0x7A, 0x30, 0x41, 0x0C, 0x21, 0x08, 0x43,
|
|
0xF0, 0x7D, 0x0C, 0x08, 0x13, 0xC0, 0xC0, 0x81, 0x86, 0xF0, 0x0C, 0x28,
|
|
0x91, 0x24, 0x50, 0xBF, 0x82, 0x04, 0x08, 0xFD, 0x02, 0x07, 0xC8, 0x40,
|
|
0x40, 0x81, 0x84, 0xF0, 0x3C, 0xC7, 0x04, 0x0B, 0xD8, 0xE0, 0xC1, 0x46,
|
|
0x78, 0xFE, 0x08, 0x10, 0x40, 0x82, 0x04, 0x10, 0x20, 0x80, 0x7D, 0x8E,
|
|
0x0E, 0x33, 0x98, 0xE0, 0xC1, 0xC6, 0xF8, 0x79, 0x8A, 0x0C, 0x1C, 0x6F,
|
|
0x40, 0x83, 0x8C, 0xF0, 0xC6, 0x50, 0x16, 0x00, 0x83, 0x8E, 0x1C, 0x0E,
|
|
0x01, 0xC0, 0x1C, 0x01, 0xFF, 0x80, 0x00, 0x1F, 0xF0, 0x80, 0x38, 0x03,
|
|
0x80, 0x70, 0x38, 0x71, 0xC1, 0x00, 0x74, 0x42, 0x33, 0x10, 0x80, 0x21,
|
|
0x00, 0x0F, 0x83, 0x04, 0x40, 0x24, 0xE9, 0x99, 0x99, 0x09, 0x90, 0x99,
|
|
0x9A, 0x4E, 0xC4, 0x00, 0x30, 0x40, 0xF8, 0x08, 0x0A, 0x05, 0x04, 0x42,
|
|
0x21, 0x11, 0xFC, 0x82, 0x41, 0x40, 0x40, 0xFE, 0x83, 0x81, 0x83, 0xFE,
|
|
0x83, 0x81, 0x81, 0x83, 0xFE, 0x3E, 0x61, 0xC0, 0x80, 0x80, 0x80, 0x80,
|
|
0xC0, 0x61, 0x3E, 0xFC, 0x41, 0xA0, 0x70, 0x18, 0x0C, 0x06, 0x03, 0x03,
|
|
0x83, 0x7E, 0x00, 0xFF, 0x02, 0x04, 0x0F, 0xF0, 0x20, 0x40, 0x81, 0xFC,
|
|
0xFE, 0x08, 0x20, 0xFE, 0x08, 0x20, 0x82, 0x00, 0x1F, 0x30, 0x50, 0x10,
|
|
0x08, 0x04, 0x1E, 0x02, 0x81, 0x60, 0x8F, 0x80, 0x81, 0x81, 0x81, 0x81,
|
|
0xFF, 0x81, 0x81, 0x81, 0x81, 0x81, 0xFF, 0xC0, 0x24, 0x92, 0x49, 0x24,
|
|
0x9C, 0x82, 0x84, 0x88, 0x90, 0xE0, 0xA0, 0x90, 0x88, 0x84, 0x82, 0x82,
|
|
0x08, 0x20, 0x82, 0x08, 0x20, 0x83, 0xF0, 0xC0, 0xF0, 0x3A, 0x16, 0x85,
|
|
0x92, 0x64, 0x98, 0xC6, 0x31, 0x80, 0x60, 0x10, 0xC1, 0xC1, 0xA1, 0x91,
|
|
0x91, 0x89, 0x89, 0x85, 0x83, 0x83, 0x3E, 0x31, 0xB0, 0x70, 0x18, 0x0C,
|
|
0x06, 0x03, 0x83, 0x63, 0x1F, 0x00, 0xFD, 0x0E, 0x0C, 0x18, 0x7F, 0xA0,
|
|
0x40, 0x81, 0x00, 0x3E, 0x31, 0xB0, 0x70, 0x18, 0x0C, 0x06, 0x03, 0x83,
|
|
0x63, 0x1F, 0x00, 0x80, 0x20, 0xFC, 0x86, 0x82, 0x82, 0x86, 0xFC, 0x86,
|
|
0x82, 0x82, 0x81, 0x7D, 0x86, 0x04, 0x06, 0x03, 0x80, 0x81, 0x86, 0xF8,
|
|
0xFF, 0x84, 0x02, 0x01, 0x00, 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x00,
|
|
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x42, 0x3C, 0x80, 0xA0,
|
|
0x90, 0x48, 0x22, 0x21, 0x10, 0x50, 0x28, 0x14, 0x04, 0x00, 0x82, 0x0C,
|
|
0x28, 0x51, 0x44, 0x8A, 0x24, 0x51, 0x14, 0x50, 0xA2, 0x85, 0x14, 0x28,
|
|
0xA0, 0x82, 0x00, 0xC1, 0xA0, 0x88, 0x82, 0x80, 0x80, 0xC0, 0x50, 0x44,
|
|
0x41, 0x60, 0xC0, 0xC1, 0xA0, 0x88, 0x84, 0x41, 0x40, 0x40, 0x20, 0x10,
|
|
0x08, 0x04, 0x00, 0xFF, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
|
|
0xFF, 0xF2, 0x49, 0x24, 0x92, 0x70, 0x86, 0x10, 0x86, 0x10, 0x86, 0x10,
|
|
0x86, 0x10, 0xE4, 0x92, 0x49, 0x24, 0xF0, 0x1C, 0x1B, 0x18, 0xD8, 0x30,
|
|
0xFE, 0xC8, 0x80, 0x7A, 0x10, 0x5F, 0x86, 0x18, 0xDD, 0x81, 0x02, 0x05,
|
|
0xCC, 0x50, 0x60, 0xC1, 0x83, 0x8A, 0xE0, 0x39, 0x18, 0x20, 0x82, 0x04,
|
|
0x4E, 0x02, 0x04, 0x09, 0xD4, 0x70, 0x60, 0xC1, 0x82, 0x8C, 0xE8, 0x3C,
|
|
0x8E, 0x0F, 0xF8, 0x10, 0x10, 0x9E, 0x34, 0x4F, 0x44, 0x44, 0x44, 0x40,
|
|
0x3A, 0x8E, 0x0C, 0x18, 0x30, 0x51, 0x9D, 0x02, 0x8C, 0xF0, 0x81, 0x02,
|
|
0x05, 0xEC, 0x70, 0x60, 0xC1, 0x83, 0x06, 0x08, 0xDF, 0xE0, 0x24, 0x12,
|
|
0x49, 0x24, 0x93, 0x80, 0x81, 0x02, 0x04, 0x28, 0x92, 0x38, 0x50, 0x91,
|
|
0x12, 0x10, 0xFF, 0xE0, 0xB9, 0xD8, 0xC6, 0x10, 0xC2, 0x18, 0x43, 0x08,
|
|
0x61, 0x0C, 0x21, 0xBD, 0x8E, 0x0C, 0x18, 0x30, 0x60, 0xC1, 0x38, 0x8A,
|
|
0x0C, 0x18, 0x30, 0x51, 0x1C, 0xB9, 0x8A, 0x0C, 0x18, 0x30, 0x71, 0x5C,
|
|
0x81, 0x02, 0x00, 0x3A, 0x8E, 0x0C, 0x18, 0x30, 0x51, 0x9D, 0x02, 0x04,
|
|
0x08, 0xBC, 0x88, 0x88, 0x88, 0x7A, 0x18, 0x38, 0x1C, 0x18, 0x5E, 0x42,
|
|
0x3E, 0x84, 0x21, 0x08, 0x41, 0xC0, 0x83, 0x06, 0x0C, 0x18, 0x30, 0x71,
|
|
0xBD, 0x83, 0x05, 0x12, 0x24, 0x45, 0x0A, 0x08, 0x88, 0xC4, 0x62, 0x2A,
|
|
0xA5, 0x52, 0xA8, 0x88, 0x44, 0x82, 0x88, 0xA0, 0x81, 0x05, 0x11, 0x41,
|
|
0x83, 0x05, 0x12, 0x22, 0x85, 0x04, 0x08, 0x10, 0x43, 0x00, 0xFC, 0x10,
|
|
0x84, 0x21, 0x08, 0x3F, 0x19, 0x08, 0x42, 0x13, 0x04, 0x21, 0x08, 0x41,
|
|
0x80, 0xFF, 0xFC, 0xC1, 0x08, 0x42, 0x10, 0x64, 0x21, 0x08, 0x4C, 0x00,
|
|
0x78, 0xC7, 0x80 };
|
|
|
|
const GFXglyph dejavusans_13pt7bGlyphs[] = {
|
|
{ 0, 1, 1, 4, 0, 0 }, // 0x20 ' '
|
|
{ 1, 1, 10, 5, 2, -9 }, // 0x21 '!'
|
|
{ 3, 3, 4, 5, 1, -9 }, // 0x22 '"'
|
|
{ 5, 10, 10, 12, 1, -9 }, // 0x23 '#'
|
|
{ 18, 7, 13, 9, 1, -10 }, // 0x24 '$'
|
|
{ 30, 12, 10, 13, 0, -9 }, // 0x25 '%'
|
|
{ 45, 10, 10, 12, 1, -9 }, // 0x26 '&'
|
|
{ 58, 1, 4, 3, 1, -9 }, // 0x27 '''
|
|
{ 59, 3, 12, 5, 1, -10 }, // 0x28 '('
|
|
{ 64, 3, 12, 5, 1, -10 }, // 0x29 ')'
|
|
{ 69, 7, 6, 7, 0, -9 }, // 0x2A '*'
|
|
{ 75, 9, 9, 12, 1, -8 }, // 0x2B '+'
|
|
{ 86, 2, 3, 4, 1, -1 }, // 0x2C ','
|
|
{ 87, 4, 1, 5, 1, -3 }, // 0x2D '-'
|
|
{ 88, 1, 2, 4, 2, -1 }, // 0x2E '.'
|
|
{ 89, 5, 12, 5, 0, -9 }, // 0x2F '/'
|
|
{ 97, 7, 10, 9, 1, -9 }, // 0x30 '0'
|
|
{ 106, 5, 10, 9, 2, -9 }, // 0x31 '1'
|
|
{ 113, 6, 10, 9, 1, -9 }, // 0x32 '2'
|
|
{ 121, 7, 10, 9, 1, -9 }, // 0x33 '3'
|
|
{ 130, 7, 10, 9, 1, -9 }, // 0x34 '4'
|
|
{ 139, 7, 10, 9, 1, -9 }, // 0x35 '5'
|
|
{ 148, 7, 10, 9, 1, -9 }, // 0x36 '6'
|
|
{ 157, 7, 10, 9, 1, -9 }, // 0x37 '7'
|
|
{ 166, 7, 10, 9, 1, -9 }, // 0x38 '8'
|
|
{ 175, 7, 10, 9, 1, -9 }, // 0x39 '9'
|
|
{ 184, 1, 7, 5, 2, -6 }, // 0x3A ':'
|
|
{ 185, 2, 8, 5, 1, -6 }, // 0x3B ';'
|
|
{ 187, 9, 8, 12, 1, -7 }, // 0x3C '<'
|
|
{ 196, 9, 4, 12, 1, -6 }, // 0x3D '='
|
|
{ 201, 9, 8, 12, 1, -7 }, // 0x3E '>'
|
|
{ 210, 5, 10, 7, 1, -9 }, // 0x3F '?'
|
|
{ 217, 12, 12, 14, 1, -9 }, // 0x40 '@'
|
|
{ 235, 9, 10, 9, 0, -9 }, // 0x41 'A'
|
|
{ 247, 8, 10, 10, 1, -9 }, // 0x42 'B'
|
|
{ 257, 8, 10, 10, 1, -9 }, // 0x43 'C'
|
|
{ 267, 9, 10, 11, 1, -9 }, // 0x44 'D'
|
|
{ 279, 7, 10, 9, 1, -9 }, // 0x45 'E'
|
|
{ 288, 6, 10, 8, 1, -9 }, // 0x46 'F'
|
|
{ 296, 9, 10, 11, 1, -9 }, // 0x47 'G'
|
|
{ 308, 8, 10, 10, 1, -9 }, // 0x48 'H'
|
|
{ 318, 1, 10, 3, 1, -9 }, // 0x49 'I'
|
|
{ 320, 3, 13, 3, -1, -9 }, // 0x4A 'J'
|
|
{ 325, 8, 10, 9, 1, -9 }, // 0x4B 'K'
|
|
{ 335, 6, 10, 7, 1, -9 }, // 0x4C 'L'
|
|
{ 343, 10, 10, 12, 1, -9 }, // 0x4D 'M'
|
|
{ 356, 8, 10, 10, 1, -9 }, // 0x4E 'N'
|
|
{ 366, 9, 10, 11, 1, -9 }, // 0x4F 'O'
|
|
{ 378, 7, 10, 9, 1, -9 }, // 0x50 'P'
|
|
{ 387, 9, 12, 11, 1, -9 }, // 0x51 'Q'
|
|
{ 401, 8, 10, 10, 1, -9 }, // 0x52 'R'
|
|
{ 411, 7, 10, 9, 1, -9 }, // 0x53 'S'
|
|
{ 420, 9, 10, 9, 0, -9 }, // 0x54 'T'
|
|
{ 432, 8, 10, 10, 1, -9 }, // 0x55 'U'
|
|
{ 442, 9, 10, 9, 0, -9 }, // 0x56 'V'
|
|
{ 454, 13, 10, 13, 0, -9 }, // 0x57 'W'
|
|
{ 471, 9, 10, 9, 0, -9 }, // 0x58 'X'
|
|
{ 483, 9, 10, 9, 0, -9 }, // 0x59 'Y'
|
|
{ 495, 8, 10, 10, 1, -9 }, // 0x5A 'Z'
|
|
{ 505, 3, 12, 5, 1, -10 }, // 0x5B '['
|
|
{ 510, 5, 12, 5, 0, -9 }, // 0x5C '\'
|
|
{ 518, 3, 12, 5, 1, -10 }, // 0x5D ']'
|
|
{ 523, 9, 4, 12, 1, -9 }, // 0x5E '^'
|
|
{ 528, 7, 1, 7, 0, 3 }, // 0x5F '_'
|
|
{ 529, 3, 3, 7, 1, -11 }, // 0x60 '`'
|
|
{ 531, 6, 8, 8, 1, -7 }, // 0x61 'a'
|
|
{ 537, 7, 11, 9, 1, -10 }, // 0x62 'b'
|
|
{ 547, 6, 8, 8, 1, -7 }, // 0x63 'c'
|
|
{ 553, 7, 11, 9, 1, -10 }, // 0x64 'd'
|
|
{ 563, 7, 8, 9, 1, -7 }, // 0x65 'e'
|
|
{ 570, 4, 11, 4, 0, -10 }, // 0x66 'f'
|
|
{ 576, 7, 11, 9, 1, -7 }, // 0x67 'g'
|
|
{ 586, 7, 11, 9, 1, -10 }, // 0x68 'h'
|
|
{ 596, 1, 11, 3, 1, -10 }, // 0x69 'i'
|
|
{ 598, 3, 14, 3, -1, -10 }, // 0x6A 'j'
|
|
{ 604, 7, 11, 8, 1, -10 }, // 0x6B 'k'
|
|
{ 614, 1, 11, 3, 1, -10 }, // 0x6C 'l'
|
|
{ 616, 11, 8, 13, 1, -7 }, // 0x6D 'm'
|
|
{ 627, 7, 8, 9, 1, -7 }, // 0x6E 'n'
|
|
{ 634, 7, 8, 9, 1, -7 }, // 0x6F 'o'
|
|
{ 641, 7, 11, 9, 1, -7 }, // 0x70 'p'
|
|
{ 651, 7, 11, 9, 1, -7 }, // 0x71 'q'
|
|
{ 661, 4, 8, 5, 1, -7 }, // 0x72 'r'
|
|
{ 665, 6, 8, 8, 1, -7 }, // 0x73 's'
|
|
{ 671, 5, 10, 5, 0, -9 }, // 0x74 't'
|
|
{ 678, 7, 8, 9, 1, -7 }, // 0x75 'u'
|
|
{ 685, 7, 8, 7, 0, -7 }, // 0x76 'v'
|
|
{ 692, 9, 8, 11, 1, -7 }, // 0x77 'w'
|
|
{ 701, 7, 8, 7, 0, -7 }, // 0x78 'x'
|
|
{ 708, 7, 11, 7, 0, -7 }, // 0x79 'y'
|
|
{ 718, 6, 8, 8, 1, -7 }, // 0x7A 'z'
|
|
{ 724, 5, 13, 9, 2, -10 }, // 0x7B '{'
|
|
{ 733, 1, 14, 5, 2, -10 }, // 0x7C '|'
|
|
{ 735, 5, 13, 9, 3, -10 }, // 0x7D '}'
|
|
{ 744, 9, 2, 12, 1, -4 } }; // 0x7E '~'
|
|
|
|
const GFXfont dejavusans_13pt7b = {
|
|
(uint8_t *)dejavusans_13pt7bBitmaps,
|
|
(GFXglyph *)dejavusans_13pt7bGlyphs,
|
|
0x20, 0x7E, 13 };//B
|
|
|
|
// Approx. 1419 bytes
|