This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
font_ascii.h
137 lines (137 loc) · 9.73 KB
/
font_ascii.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/************************************************************************
* This is an 8x8 bitmap font library
*
* Based on International Business Machines public domain PC BIOS font
*
* Control code graphics and extended ASCII layout per Code Page 437
* See https://en.wikipedia.org/wiki/Code_page_437 for more information
************************************************************************/
const unsigned char font_ascii[ ][8] = { // Dec Hex 'Chr' Description
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, // 000 0x00 ' ' NUL
{ 0x7E, 0x81, 0xA5, 0x81, 0xBD, 0x99, 0x81, 0x7E }, // 001 0x01 '☺' SOH Face
{ 0x7E, 0xFF, 0xDB, 0xFF, 0xC3, 0xE7, 0xFF, 0x7E }, // 002 0x02 '☻' STX Face-Inverse
{ 0x36, 0x7F, 0x7F, 0x7F, 0x3E, 0x1C, 0x08, 0x00 }, // 003 0x03 '♥' ETX Heart
{ 0x08, 0x1C, 0x3E, 0x7F, 0x3E, 0x1C, 0x08, 0x00 }, // 004 0x04 '♦' EOT Diamond
{ 0x1C, 0x3E, 0x1C, 0x7F, 0x7F, 0x3E, 0x1C, 0x3E }, // 005 0x05 '♣' ENQ Spade
{ 0x08, 0x08, 0x1C, 0x3E, 0x7F, 0x3E, 0x1C, 0x3E }, // 006 0x06 'â™ ' ACK Club
{ 0x00, 0x00, 0x06, 0x0F, 0x0F, 0x06, 0x00, 0x00 }, // 007 0x07 '•' BEL Bullet
{ 0xFF, 0xFF, 0xE7, 0xC3, 0xC3, 0xE7, 0xFF, 0xFF }, // 008 0x08 'â—˜' BS Bullet-Inverse
{ 0x00, 0x1E, 0x33, 0x21, 0x21, 0x33, 0x1E, 0x00 }, // 009 0x09 'â—‹' TAB Circle
{ 0xFF, 0xC3, 0x99, 0xBD, 0xBD, 0x99, 0xC3, 0xFF }, // 010 0x0A 'â—™' LF Circle-Inverse
{ 0xF0, 0xE0, 0xF0, 0xBE, 0x33, 0x33, 0x33, 0x1E }, // 011 0x0B '♂' VT Male
{ 0x1E, 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x3F, 0x0C }, // 012 0x0C '♀' FF Female
{ 0xFC, 0xCC, 0xFC, 0x0C, 0x0C, 0x0E, 0x0F, 0x07 }, // 013 0x0D '♪' CR Note
{ 0xFE, 0xC6, 0xFE, 0xC6, 0xC6, 0xE6, 0x67, 0x03 }, // 014 0x0E '♫' SO Notes
{ 0x99, 0x5A, 0x3C, 0xE7, 0xE7, 0x3C, 0x5A, 0x99 }, // 015 0x0F '☼' SI Sun
{ 0x01, 0x07, 0x1F, 0x7F, 0x1F, 0x07, 0x01, 0x00 }, // 016 0x10 'â–º' DLE Triangle-R
{ 0x40, 0x70, 0x7C, 0x7F, 0x7C, 0x70, 0x40, 0x00 }, // 017 0x11 'â—„' DC1 Triangle-L
{ 0x0C, 0x1E, 0x3F, 0x0C, 0x0C, 0x3F, 0x1E, 0x0C }, // 018 0x12 '↕' DC2 Arrow-U-D
{ 0x00, 0x33, 0x33, 0x33, 0x33, 0x33, 0x00, 0x33 }, // 019 0x13 '‼' DC3 !-double
{ 0x00, 0xFE, 0xDB, 0xDB, 0xDE, 0xD8, 0xD8, 0xD8 }, // 020 0x14 '¶' DC4 Pilcrow
{ 0x7C, 0xC6, 0x1C, 0x36, 0x36, 0x1C, 0x33, 0x1E }, // 021 0x15 '§' NAK Section
{ 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x3F, 0x00, 0x00 }, // 022 0x16 'â–¬' SYN Rectangle
{ 0x18, 0x3C, 0x7E, 0x18, 0x7E, 0x3C, 0x18, 0xFF }, // 023 0x17 '↨' ETB Arrow-U-D-B
{ 0x0C, 0x1E, 0x3F, 0x0C, 0x0C, 0x0C, 0x0C, 0x00 }, // 024 0x18 '↑' CAN Arrow-U
{ 0x00, 0x0C, 0x0C, 0x0C, 0x0C, 0x3F, 0x1E, 0x0C }, // 025 0x19 '↓' EM Arrow-D
{ 0x00, 0x18, 0x30, 0x7F, 0x30, 0x18, 0x00, 0x00 }, // 026 0x1A '→' EOF Arrow-R
{ 0x00, 0x0C, 0x06, 0x7F, 0x06, 0x0C, 0x00, 0x00 }, // 027 0x1B '�' ESC Arrow-L
{ 0x00, 0x00, 0x03, 0x03, 0x03, 0x7F, 0x00, 0x00 }, // 028 0x1C '∟' FS Right-Angle
{ 0x00, 0x24, 0x66, 0xFF, 0x66, 0x24, 0x00, 0x00 }, // 029 0x1D '↔' GS Arrow-R-L
{ 0x00, 0x18, 0x3C, 0x7E, 0xFF, 0xFF, 0x00, 0x00 }, // 030 0x1E 'â–²' RS Triangle-U
{ 0x00, 0x00, 0xFF, 0xFF, 0x7E, 0x3C, 0x18, 0x00 }, // 031 0x1F 'â–¼' US Triangle-D
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, // 032 0x20 ' ' SPC Space
{ 0x0C, 0x1E, 0x1E, 0x0C, 0x0C, 0x00, 0x0C, 0x00 }, // 033 0x21 '!'
{ 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00 }, // 034 0x22 '"'
{ 0x36, 0x36, 0x7F, 0x36, 0x7F, 0x36, 0x36, 0x00 }, // 035 0x23 '#'
{ 0x0C, 0x3E, 0x03, 0x1E, 0x30, 0x1F, 0x0C, 0x00 }, // 036 0x24 '$'
{ 0x00, 0x63, 0x33, 0x18, 0x0C, 0x66, 0x63, 0x00 }, // 037 0x25 '%'
{ 0x1C, 0x36, 0x1C, 0x6E, 0x3B, 0x33, 0x6E, 0x00 }, // 038 0x26 '&'
{ 0x06, 0x06, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00 }, // 039 0x27 '''
{ 0x18, 0x0C, 0x06, 0x06, 0x06, 0x0C, 0x18, 0x00 }, // 040 0x28 '('
{ 0x06, 0x0C, 0x18, 0x18, 0x18, 0x0C, 0x06, 0x00 }, // 041 0x29 ')'
{ 0x00, 0x66, 0x3C, 0xFF, 0x3C, 0x66, 0x00, 0x00 }, // 042 0x2A '*'
{ 0x00, 0x0C, 0x0C, 0x3F, 0x0C, 0x0C, 0x00, 0x00 }, // 043 0x2B '+'
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x06 }, // 044 0x2C ','
{ 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00 }, // 045 0x2D '-'
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x00 }, // 046 0x2E '.'
{ 0x60, 0x30, 0x18, 0x0C, 0x06, 0x03, 0x01, 0x00 }, // 047 0x2F '/'
{ 0x3E, 0x63, 0x73, 0x7B, 0x6F, 0x67, 0x3E, 0x00 }, // 048 0x30 '0'
{ 0x0C, 0x0E, 0x0C, 0x0C, 0x0C, 0x0C, 0x3F, 0x00 }, // 049 0x31 '1'
{ 0x1E, 0x33, 0x30, 0x1C, 0x06, 0x33, 0x3F, 0x00 }, // 050 0x32 '2'
{ 0x1E, 0x33, 0x30, 0x1C, 0x30, 0x33, 0x1E, 0x00 }, // 051 0x33 '3'
{ 0x38, 0x3C, 0x36, 0x33, 0x7F, 0x30, 0x78, 0x00 }, // 052 0x34 '4'
{ 0x3F, 0x03, 0x1F, 0x30, 0x30, 0x33, 0x1E, 0x00 }, // 053 0x35 '5'
{ 0x1C, 0x06, 0x03, 0x1F, 0x33, 0x33, 0x1E, 0x00 }, // 054 0x36 '6'
{ 0x3F, 0x33, 0x30, 0x18, 0x0C, 0x0C, 0x0C, 0x00 }, // 055 0x37 '7'
{ 0x1E, 0x33, 0x33, 0x1E, 0x33, 0x33, 0x1E, 0x00 }, // 056 0x38 '8'
{ 0x1E, 0x33, 0x33, 0x3E, 0x30, 0x18, 0x0E, 0x00 }, // 057 0x39 '9'
{ 0x00, 0x0C, 0x0C, 0x00, 0x00, 0x0C, 0x0C, 0x00 }, // 058 0x3A ':'
{ 0x00, 0x0C, 0x0C, 0x00, 0x00, 0x0C, 0x0C, 0x06 }, // 059 0x3B ';'
{ 0x18, 0x0C, 0x06, 0x03, 0x06, 0x0C, 0x18, 0x00 }, // 060 0x3C '<'
{ 0x00, 0x00, 0x3F, 0x00, 0x00, 0x3F, 0x00, 0x00 }, // 061 0x3D '='
{ 0x06, 0x0C, 0x18, 0x30, 0x18, 0x0C, 0x06, 0x00 }, // 062 0x3E '>'
{ 0x1E, 0x33, 0x30, 0x18, 0x0C, 0x00, 0x0C, 0x00 }, // 063 0x3F '?'
{ 0x3E, 0x63, 0x7B, 0x7B, 0x7B, 0x03, 0x1E, 0x00 }, // 064 0x40 '@'
{ 0x0C, 0x1E, 0x33, 0x33, 0x3F, 0x33, 0x33, 0x00 }, // 065 0x41 'A'
{ 0x3F, 0x66, 0x66, 0x3E, 0x66, 0x66, 0x3F, 0x00 }, // 066 0x42 'B'
{ 0x3C, 0x66, 0x03, 0x03, 0x03, 0x66, 0x3C, 0x00 }, // 067 0x43 'C'
{ 0x1F, 0x36, 0x66, 0x66, 0x66, 0x36, 0x1F, 0x00 }, // 068 0x44 'D'
{ 0x7F, 0x46, 0x16, 0x1E, 0x16, 0x46, 0x7F, 0x00 }, // 069 0x45 'E'
{ 0x7F, 0x46, 0x16, 0x1E, 0x16, 0x06, 0x0F, 0x00 }, // 070 0x46 'F'
{ 0x3C, 0x66, 0x03, 0x03, 0x73, 0x66, 0x7C, 0x00 }, // 071 0x47 'G'
{ 0x33, 0x33, 0x33, 0x3F, 0x33, 0x33, 0x33, 0x00 }, // 072 0x48 'H'
{ 0x1E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00 }, // 073 0x49 'I'
{ 0x78, 0x30, 0x30, 0x30, 0x33, 0x33, 0x1E, 0x00 }, // 074 0x4A 'J'
{ 0x67, 0x66, 0x36, 0x1E, 0x36, 0x66, 0x67, 0x00 }, // 075 0x4B 'K'
{ 0x0F, 0x06, 0x06, 0x06, 0x46, 0x66, 0x7F, 0x00 }, // 076 0x4C 'L'
{ 0x63, 0x77, 0x7F, 0x7F, 0x6B, 0x63, 0x63, 0x00 }, // 077 0x4D 'M'
{ 0x63, 0x67, 0x6F, 0x7B, 0x73, 0x63, 0x63, 0x00 }, // 078 0x4E 'N'
{ 0x1C, 0x36, 0x63, 0x63, 0x63, 0x36, 0x1C, 0x00 }, // 079 0x4F 'O'
{ 0x3F, 0x66, 0x66, 0x3E, 0x06, 0x06, 0x0F, 0x00 }, // 080 0x50 'P'
{ 0x1E, 0x33, 0x33, 0x33, 0x3B, 0x1E, 0x38, 0x00 }, // 081 0x51 'Q'
{ 0x3F, 0x66, 0x66, 0x3E, 0x36, 0x66, 0x67, 0x00 }, // 082 0x52 'R'
{ 0x1E, 0x33, 0x07, 0x0E, 0x38, 0x33, 0x1E, 0x00 }, // 083 0x53 'S'
{ 0x3F, 0x2D, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00 }, // 084 0x54 'T'
{ 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x3F, 0x00 }, // 085 0x55 'U'
{ 0x33, 0x33, 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x00 }, // 086 0x56 'V'
{ 0x63, 0x63, 0x63, 0x6B, 0x7F, 0x77, 0x63, 0x00 }, // 087 0x57 'W'
{ 0x63, 0x63, 0x36, 0x1C, 0x1C, 0x36, 0x63, 0x00 }, // 088 0x58 'X'
{ 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x0C, 0x1E, 0x00 }, // 089 0x59 'Y'
{ 0x7F, 0x63, 0x31, 0x18, 0x4C, 0x66, 0x7F, 0x00 }, // 090 0x5A 'Z'
{ 0x1E, 0x06, 0x06, 0x06, 0x06, 0x06, 0x1E, 0x00 }, // 091 0x5B '['
{ 0x03, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x40, 0x00 }, // 092 0x5C '\'
{ 0x1E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1E, 0x00 }, // 093 0x5D ']'
{ 0x08, 0x1C, 0x36, 0x63, 0x00, 0x00, 0x00, 0x00 }, // 094 0x5E '^'
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF }, // 095 0x5F '_'
{ 0x0C, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00 }, // 096 0x60 '`'
{ 0x00, 0x00, 0x1E, 0x30, 0x3E, 0x33, 0x6E, 0x00 }, // 097 0x61 'a'
{ 0x07, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x3B, 0x00 }, // 098 0x62 'b'
{ 0x00, 0x00, 0x1E, 0x33, 0x03, 0x33, 0x1E, 0x00 }, // 099 0x63 'c'
{ 0x38, 0x30, 0x30, 0x3E, 0x33, 0x33, 0x6E, 0x00 }, // 100 0x64 'd'
{ 0x00, 0x00, 0x1E, 0x33, 0x3F, 0x03, 0x1E, 0x00 }, // 101 0x65 'e'
{ 0x1C, 0x36, 0x06, 0x0F, 0x06, 0x06, 0x0F, 0x00 }, // 102 0x66 'f'
{ 0x00, 0x00, 0x6E, 0x33, 0x33, 0x3E, 0x30, 0x1F }, // 103 0x67 'g'
{ 0x07, 0x06, 0x36, 0x6E, 0x66, 0x66, 0x67, 0x00 }, // 104 0x68 'h'
{ 0x0C, 0x00, 0x0E, 0x0C, 0x0C, 0x0C, 0x1E, 0x00 }, // 105 0x69 'i'
{ 0x30, 0x00, 0x30, 0x30, 0x30, 0x33, 0x33, 0x1E }, // 106 0x6A 'j'
{ 0x07, 0x06, 0x66, 0x36, 0x1E, 0x36, 0x67, 0x00 }, // 107 0x6B 'k'
{ 0x0E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00 }, // 108 0x6C 'l'
{ 0x00, 0x00, 0x33, 0x7F, 0x7F, 0x6B, 0x63, 0x00 }, // 109 0x6D 'm'
{ 0x00, 0x00, 0x1F, 0x33, 0x33, 0x33, 0x33, 0x00 }, // 110 0x6E 'n'
{ 0x00, 0x00, 0x1E, 0x33, 0x33, 0x33, 0x1E, 0x00 }, // 111 0x6F 'o'
{ 0x00, 0x00, 0x3B, 0x66, 0x66, 0x3E, 0x06, 0x0F }, // 112 0x70 'p'
{ 0x00, 0x00, 0x6E, 0x33, 0x33, 0x3E, 0x30, 0x78 }, // 113 0x71 'q'
{ 0x00, 0x00, 0x3B, 0x6E, 0x66, 0x06, 0x0F, 0x00 }, // 114 0x72 'r'
{ 0x00, 0x00, 0x3E, 0x03, 0x1E, 0x30, 0x1F, 0x00 }, // 115 0x73 's'
{ 0x08, 0x0C, 0x3E, 0x0C, 0x0C, 0x2C, 0x18, 0x00 }, // 116 0x74 't'
{ 0x00, 0x00, 0x33, 0x33, 0x33, 0x33, 0x6E, 0x00 }, // 117 0x75 'u'
{ 0x00, 0x00, 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x00 }, // 118 0x76 'v'
{ 0x00, 0x00, 0x63, 0x6B, 0x7F, 0x7F, 0x36, 0x00 }, // 119 0x77 'w'
{ 0x00, 0x00, 0x63, 0x36, 0x1C, 0x36, 0x63, 0x00 }, // 120 0x78 'x'
{ 0x00, 0x00, 0x33, 0x33, 0x33, 0x3E, 0x30, 0x1F }, // 121 0x79 'y'
{ 0x00, 0x00, 0x3F, 0x19, 0x0C, 0x26, 0x3F, 0x00 }, // 122 0x7A 'z'
{ 0x38, 0x0C, 0x0C, 0x07, 0x0C, 0x0C, 0x38, 0x00 }, // 123 0x7B '{'
{ 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0x00 }, // 124 0x7C '|'
{ 0x07, 0x0C, 0x0C, 0x38, 0x0C, 0x0C, 0x07, 0x00 }, // 125 0x7D '}'
{ 0x00, 0x00, 0x6E, 0x3B, 0x00, 0x00, 0x00, 0x00 }, // 126 0x7E '~'
};