169 lines
9.8 KiB
C
169 lines
9.8 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t ocra_13pt7bBitmaps[] = {
|
|
0x00, 0xFF, 0xFC, 0x3C, 0xFF, 0xDF, 0x1A, 0x20, 0x40, 0x24, 0x4B, 0xF9,
|
|
0x22, 0x4F, 0xC9, 0x12, 0x24, 0x10, 0x20, 0x47, 0xFC, 0x1F, 0xC1, 0xFF,
|
|
0x10, 0x20, 0xE1, 0xCC, 0x10, 0x61, 0x82, 0x0C, 0x30, 0x41, 0x1C, 0x38,
|
|
0x7A, 0x28, 0xB6, 0x71, 0x8F, 0x67, 0x9D, 0xD0, 0xFF, 0x6D, 0x80, 0x2F,
|
|
0x49, 0x24, 0xCC, 0x80, 0x99, 0x92, 0x49, 0x7A, 0x00, 0x11, 0xAD, 0xF1,
|
|
0xC3, 0x8F, 0xB5, 0x88, 0x10, 0x20, 0x43, 0xF1, 0x02, 0x04, 0x00, 0xF1,
|
|
0x11, 0x10, 0xFF, 0xFC, 0xFC, 0x04, 0x30, 0x86, 0x10, 0xC2, 0x18, 0xC2,
|
|
0x08, 0x00, 0xFF, 0x06, 0x0C, 0x18, 0x30, 0x60, 0xC1, 0x83, 0x07, 0xF8,
|
|
0xF0, 0x20, 0x40, 0x81, 0x02, 0x04, 0x89, 0x12, 0x27, 0xF8, 0xFE, 0x04,
|
|
0x08, 0x10, 0x3F, 0xE0, 0x40, 0x81, 0x03, 0xF8, 0xFE, 0x04, 0x08, 0x10,
|
|
0x27, 0xC0, 0x81, 0x02, 0x05, 0xF8, 0x82, 0x28, 0xA2, 0x8A, 0x2F, 0xC2,
|
|
0x08, 0x20, 0x80, 0x7D, 0x04, 0x10, 0x41, 0xF0, 0x41, 0x06, 0x1F, 0xC0,
|
|
0xC1, 0x02, 0x04, 0x08, 0x10, 0x3F, 0xC1, 0x83, 0x07, 0xF8, 0xFE, 0x04,
|
|
0x08, 0x10, 0x61, 0x04, 0x08, 0x10, 0x20, 0x40, 0x38, 0x50, 0xA1, 0x42,
|
|
0x9F, 0xB0, 0xE1, 0xC3, 0x87, 0xF8, 0xFF, 0x06, 0x0C, 0x1F, 0xE0, 0x40,
|
|
0x81, 0x02, 0x04, 0x18, 0xFC, 0x01, 0xF8, 0xEE, 0x00, 0x0F, 0x11, 0x11,
|
|
0x04, 0x33, 0xB8, 0x83, 0x07, 0x07, 0x04, 0x7E, 0x00, 0x03, 0xF0, 0x83,
|
|
0x07, 0x06, 0x0C, 0x73, 0xB8, 0x80, 0x04, 0x1C, 0x69, 0x94, 0x43, 0x0C,
|
|
0x10, 0x20, 0x00, 0x80, 0x7D, 0x04, 0x08, 0x17, 0x32, 0x64, 0xC9, 0x93,
|
|
0x25, 0xF0, 0x30, 0xC3, 0x1E, 0x79, 0x2C, 0xBF, 0x86, 0x10, 0x00, 0xFD,
|
|
0x0E, 0x0C, 0x18, 0x7F, 0xA0, 0xC1, 0x83, 0x07, 0xF0, 0x3E, 0x41, 0x82,
|
|
0x0C, 0x18, 0x30, 0x20, 0x60, 0x40, 0xF8, 0x78, 0x2C, 0x24, 0x26, 0x22,
|
|
0x22, 0x22, 0x26, 0x24, 0x2C, 0x78, 0xFE, 0x08, 0x20, 0x83, 0xC8, 0x20,
|
|
0x82, 0x0F, 0xC0, 0xFE, 0x08, 0x3E, 0x82, 0x08, 0x20, 0x82, 0x00, 0x1E,
|
|
0x41, 0x06, 0x08, 0x10, 0x23, 0xC1, 0x83, 0x05, 0xF0, 0x83, 0x06, 0x0C,
|
|
0x18, 0x3F, 0xE0, 0xC1, 0x83, 0x06, 0x08, 0xFE, 0x20, 0x40, 0x81, 0x02,
|
|
0x04, 0x08, 0x10, 0x21, 0xF8, 0x08, 0x42, 0x10, 0x86, 0x31, 0x8C, 0x7E,
|
|
0x86, 0x39, 0xBC, 0xC2, 0x0E, 0x2C, 0x9A, 0x38, 0x40, 0x82, 0x08, 0x20,
|
|
0x82, 0x08, 0x20, 0x82, 0x0F, 0xC0, 0xC7, 0xDE, 0xEC, 0x99, 0x30, 0x60,
|
|
0xC1, 0x83, 0x06, 0x08, 0xC3, 0x87, 0x8D, 0x1B, 0x32, 0x66, 0xC5, 0x8F,
|
|
0x0E, 0x18, 0x31, 0xE4, 0xB3, 0x86, 0x18, 0x73, 0x49, 0xE3, 0x00, 0xFD,
|
|
0x06, 0x0C, 0x18, 0x3F, 0xA0, 0x40, 0x81, 0x00, 0x04, 0x3C, 0xEB, 0x1C,
|
|
0x30, 0x64, 0xCF, 0x9D, 0x79, 0xB8, 0xFD, 0x06, 0x0F, 0xE9, 0x13, 0x23,
|
|
0x42, 0x87, 0x04, 0x7E, 0x85, 0x83, 0x83, 0x03, 0x03, 0x06, 0x06, 0x85,
|
|
0xF8, 0xFF, 0xAC, 0x40, 0x81, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x83,
|
|
0x06, 0x0C, 0x18, 0x30, 0x60, 0xC1, 0x83, 0x05, 0xF0, 0x83, 0x06, 0x0C,
|
|
0x1C, 0x68, 0x9B, 0x14, 0x38, 0x70, 0x40, 0x83, 0x06, 0x0C, 0x19, 0x32,
|
|
0x64, 0xC9, 0x93, 0x27, 0xF8, 0x86, 0x3C, 0x9E, 0x30, 0xC3, 0x1E, 0xCA,
|
|
0x38, 0x40, 0x83, 0x07, 0x1B, 0x63, 0x82, 0x04, 0x08, 0x10, 0x20, 0x40,
|
|
0xFE, 0x0C, 0x30, 0x41, 0x82, 0x0C, 0x30, 0x61, 0x83, 0xF8, 0xFE, 0x8A,
|
|
0x28, 0xA2, 0x8A, 0x28, 0xA2, 0x8F, 0xC0, 0x82, 0x0C, 0x18, 0x20, 0xC1,
|
|
0x06, 0x08, 0x30, 0x40, 0xFC, 0x51, 0x45, 0x14, 0x51, 0x45, 0x14, 0x5F,
|
|
0xC0, 0x30, 0xC7, 0x9E, 0xCF, 0x38, 0x40, 0xFC, 0xE1, 0xC3, 0x06, 0x0C,
|
|
0x78, 0x10, 0x5F, 0x86, 0x18, 0xDF, 0x81, 0x02,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F0, 0xC1, 0x87, 0x99, 0xA1, 0x83, 0x06,
|
|
0x0A, 0x24, 0x4D, 0x0E, 0x0C, 0x30, 0x63, 0x80, 0xFE, 0x0C, 0x30, 0xC3,
|
|
0x0C, 0x30, 0x7F, 0x1E, 0x20, 0x40, 0x81, 0x0E, 0x04, 0x08, 0x10, 0x20,
|
|
0x78, 0xFB, 0xE0, 0xF0, 0x20, 0x40, 0x81, 0x03, 0xC4, 0x08, 0x10, 0x21,
|
|
0xC0, 0x63, 0xE6, 0x4C, 0x98, 0xC0 };
|
|
|
|
const GFXglyph ocra_13pt7bGlyphs[] = {
|
|
{ 0, 1, 1, 10, 0, 0 }, // 0x20 ' '
|
|
{ 1, 2, 11, 10, 4, -10 }, // 0x21 '!'
|
|
{ 4, 7, 5, 10, 2, -10 }, // 0x22 '"'
|
|
{ 9, 7, 9, 10, 1, -10 }, // 0x23 '#'
|
|
{ 17, 7, 10, 10, 1, -10 }, // 0x24 '$'
|
|
{ 26, 7, 11, 10, 2, -10 }, // 0x25 '%'
|
|
{ 36, 6, 10, 10, 2, -9 }, // 0x26 '&'
|
|
{ 44, 3, 6, 10, 4, -10 }, // 0x27 '''
|
|
{ 47, 3, 11, 10, 4, -10 }, // 0x28 '('
|
|
{ 52, 3, 11, 10, 3, -10 }, // 0x29 ')'
|
|
{ 57, 7, 8, 10, 1, -8 }, // 0x2A '*'
|
|
{ 64, 7, 7, 10, 1, -8 }, // 0x2B '+'
|
|
{ 71, 4, 5, 10, 3, -4 }, // 0x2C ','
|
|
{ 74, 7, 2, 10, 1, -5 }, // 0x2D '-'
|
|
{ 76, 3, 2, 10, 4, -3 }, // 0x2E '.'
|
|
{ 77, 6, 11, 10, 2, -10 }, // 0x2F '/'
|
|
{ 86, 7, 11, 10, 2, -10 }, // 0x30 '0'
|
|
{ 96, 7, 11, 10, 1, -10 }, // 0x31 '1'
|
|
{ 106, 7, 11, 10, 2, -10 }, // 0x32 '2'
|
|
{ 116, 7, 11, 10, 1, -10 }, // 0x33 '3'
|
|
{ 126, 6, 11, 10, 2, -10 }, // 0x34 '4'
|
|
{ 135, 6, 11, 10, 2, -10 }, // 0x35 '5'
|
|
{ 144, 7, 11, 10, 2, -10 }, // 0x36 '6'
|
|
{ 154, 7, 11, 10, 1, -10 }, // 0x37 '7'
|
|
{ 164, 7, 11, 10, 2, -10 }, // 0x38 '8'
|
|
{ 174, 7, 11, 10, 2, -10 }, // 0x39 '9'
|
|
{ 184, 3, 7, 10, 4, -8 }, // 0x3A ':'
|
|
{ 187, 4, 10, 10, 3, -9 }, // 0x3B ';'
|
|
{ 192, 6, 9, 10, 2, -9 }, // 0x3C '<'
|
|
{ 199, 7, 4, 10, 1, -7 }, // 0x3D '='
|
|
{ 203, 6, 9, 10, 2, -9 }, // 0x3E '>'
|
|
{ 210, 7, 11, 10, 1, -10 }, // 0x3F '?'
|
|
{ 220, 7, 11, 10, 2, -10 }, // 0x40 '@'
|
|
{ 230, 6, 11, 10, 2, -10 }, // 0x41 'A'
|
|
{ 239, 7, 11, 10, 2, -10 }, // 0x42 'B'
|
|
{ 249, 7, 11, 10, 1, -10 }, // 0x43 'C'
|
|
{ 259, 8, 11, 10, 1, -10 }, // 0x44 'D'
|
|
{ 270, 6, 11, 10, 2, -10 }, // 0x45 'E'
|
|
{ 279, 6, 10, 10, 2, -10 }, // 0x46 'F'
|
|
{ 287, 7, 11, 10, 2, -10 }, // 0x47 'G'
|
|
{ 297, 7, 11, 10, 2, -10 }, // 0x48 'H'
|
|
{ 307, 7, 11, 10, 1, -10 }, // 0x49 'I'
|
|
{ 317, 5, 11, 10, 2, -10 }, // 0x4A 'J'
|
|
{ 324, 6, 11, 10, 2, -10 }, // 0x4B 'K'
|
|
{ 333, 6, 11, 10, 2, -10 }, // 0x4C 'L'
|
|
{ 342, 7, 11, 10, 2, -10 }, // 0x4D 'M'
|
|
{ 352, 7, 11, 10, 2, -10 }, // 0x4E 'N'
|
|
{ 362, 6, 11, 10, 2, -10 }, // 0x4F 'O'
|
|
{ 371, 7, 10, 10, 2, -10 }, // 0x50 'P'
|
|
{ 380, 7, 11, 10, 2, -10 }, // 0x51 'Q'
|
|
{ 390, 7, 10, 10, 2, -10 }, // 0x52 'R'
|
|
{ 399, 7, 11, 10, 1, -10 }, // 0x53 'S'
|
|
{ 409, 7, 11, 10, 1, -10 }, // 0x54 'T'
|
|
{ 419, 7, 11, 10, 2, -10 }, // 0x55 'U'
|
|
{ 429, 7, 11, 10, 2, -10 }, // 0x56 'V'
|
|
{ 439, 7, 11, 10, 2, -10 }, // 0x57 'W'
|
|
{ 449, 6, 11, 10, 2, -10 }, // 0x58 'X'
|
|
{ 458, 7, 11, 10, 2, -10 }, // 0x59 'Y'
|
|
{ 468, 7, 11, 10, 2, -10 }, // 0x5A 'Z'
|
|
{ 478, 6, 11, 10, 2, -10 }, // 0x5B '['
|
|
{ 487, 6, 11, 10, 2, -10 }, // 0x5C '\'
|
|
{ 496, 6, 11, 10, 2, -10 }, // 0x5D ']'
|
|
{ 505, 6, 7, 10, 2, -8 }, // 0x5E '^'
|
|
{ 511, 6, 1, 10, 2, 1 }, // 0x5F '_'
|
|
{ 512, 6, 5, 10, 2, -10 }, // 0x60 '`'
|
|
{ 516, 6, 8, 10, 2, -7 }, // 0x61 'a'
|
|
{ 522, 7, 11, 10, 2, -10 }, // 0x62 'b'
|
|
{ 532, 7, 8, 10, 2, -7 }, // 0x63 'c'
|
|
{ 539, 7, 11, 10, 2, -10 }, // 0x64 'd'
|
|
{ 549, 7, 8, 10, 2, -7 }, // 0x65 'e'
|
|
{ 556, 5, 11, 10, 2, -10 }, // 0x66 'f'
|
|
{ 563, 7, 11, 10, 2, -7 }, // 0x67 'g'
|
|
{ 573, 7, 11, 10, 2, -10 }, // 0x68 'h'
|
|
{ 583, 5, 11, 10, 2, -10 }, // 0x69 'i'
|
|
{ 590, 5, 14, 10, 2, -10 }, // 0x6A 'j'
|
|
{ 599, 6, 11, 10, 2, -10 }, // 0x6B 'k'
|
|
{ 608, 5, 11, 10, 2, -10 }, // 0x6C 'l'
|
|
{ 615, 7, 8, 10, 1, -7 }, // 0x6D 'm'
|
|
{ 622, 7, 8, 10, 2, -7 }, // 0x6E 'n'
|
|
{ 629, 7, 8, 10, 2, -7 }, // 0x6F 'o'
|
|
{ 636, 7, 11, 10, 2, -7 }, // 0x70 'p'
|
|
{ 646, 7, 11, 10, 2, -7 }, // 0x71 'q'
|
|
{ 656, 6, 8, 10, 2, -7 }, // 0x72 'r'
|
|
{ 662, 6, 8, 10, 2, -7 }, // 0x73 's'
|
|
{ 668, 7, 11, 10, 1, -10 }, // 0x74 't'
|
|
{ 678, 7, 8, 10, 2, -7 }, // 0x75 'u'
|
|
{ 685, 7, 8, 10, 2, -7 }, // 0x76 'v'
|
|
{ 692, 7, 8, 10, 1, -7 }, // 0x77 'w'
|
|
{ 699, 7, 8, 10, 1, -7 }, // 0x78 'x'
|
|
{ 706, 7, 11, 10, 2, -7 }, // 0x79 'y'
|
|
{ 716, 7, 8, 10, 2, -7 }, // 0x7A 'z'
|
|
{ 723, 7, 11, 10, 1, -10 }, // 0x7B '{'
|
|
{ 733, 1, 11, 10, 4, -10 }, // 0x7C '|'
|
|
{ 735, 7, 11, 10, 1, -10 }, // 0x7D '}'
|
|
{ 745, 7, 5, 10, 2, -10 } }; // 0x7E '~'
|
|
|
|
const GFXfont ocra_13pt7b = {
|
|
(uint8_t *)ocra_13pt7bBitmaps,
|
|
(GFXglyph *)ocra_13pt7bGlyphs,
|
|
0x20, 0x7E, 13 };//B
|
|
|
|
// Approx. 1422 bytes
|