forked from pantata/TFT9341SPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gothic16b.c
210 lines (199 loc) · 6.65 KB
/
Gothic16b.c
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
// This comes with no warranty, implied or otherwise
// This data structure was designed to support Proportional fonts
// on Arduinos. It can however handle any ttf font that has been converted
// using the conversion program. These could be fixed width or proportional
// fonts. Individual characters do not have to be multiples of 8 bits wide.
// Any width is fine and does not need to be fixed.
// The data bits are packed to minimize data requirements, but the tradeoff
// is that a header is required per character.
// Gothic16b.c
// Point Size : 16
// Memory usage : 1571 bytes
// # characters : 95
// Header Format (to make Arduino UTFT Compatible):
// ------------------------------------------------
// Character Width (Used as a marker to indicate use this format. i.e.: = 0x00)
// Character Height
// First Character (Reserved. 0x00)
// Number Of Characters (Reserved. 0x00)
#include <avr/pgmspace.h>
const uint8_t Gothic16b[] PROGMEM =
{
0x00, 0x0F, 0x00, 0x00,
// Individual Character Format:
// ----------------------------
// Character Code
// Adjusted Y Offset
// Width
// Height
// xOffset
// xDelta (the distance to move the cursor. Effective width of the character.)
// Data[n]
// NOTE: You can remove any of these characters if they are not needed in
// your application. The first character number in each Glyph indicates
// the ASCII character code. Therefore, these do not have to be sequential.
// Just remove all the content for a particular character to save space.
// ' '
0x20,0x0D,0x00,0x00,0x00,0x04,
// '/'
0x2F,0x01,0x07,0x0E,0x00,0x07,
0x04,0x08,0x10,0x40,0x81,0x04,0x08,0x10,0x40,0x81,0x04,0x08,0x00,
// '0'
0x30,0x01,0x08,0x0C,0x00,0x09,
0x3C,0x7E,0x66,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xE6,0x7E,0x3C,
// '1'
0x31,0x01,0x05,0x0C,0x01,0x09,
0x7F,0xC6,0x31,0x8C,0x63,0x18,0xC6,0x30,
// '2'
0x32,0x01,0x08,0x0C,0x00,0x09,
0x3C,0x7E,0xE7,0xC3,0x03,0x06,0x0E,0x1C,0x38,0x70,0xFF,0xFF,
// '3'
0x33,0x01,0x08,0x0C,0x00,0x09,
0x3C,0x3E,0x66,0x06,0x1C,0x1E,0x07,0x03,0xC3,0xE7,0x7E,0x3C,
// '4'
0x34,0x01,0x08,0x0C,0x00,0x09,
0x06,0x0E,0x0E,0x1E,0x3E,0x36,0x66,0xE6,0xFF,0xFF,0x06,0x06,
// '5'
0x35,0x01,0x08,0x0C,0x00,0x09,
0x3F,0x3F,0x30,0x70,0x7C,0x7E,0x67,0x03,0x03,0xE7,0x7E,0x3C,
// '6'
0x36,0x01,0x07,0x0C,0x01,0x09,
0x08,0x30,0x61,0x83,0x0F,0x1F,0x63,0xC7,0x8D,0xF1,0xC0,
// '7'
0x37,0x01,0x08,0x0C,0x00,0x09,
0xFF,0xFF,0x06,0x06,0x0C,0x0C,0x18,0x18,0x30,0x30,0x60,0x60,
// '8'
0x38,0x01,0x08,0x0C,0x00,0x09,
0x3C,0x7C,0x66,0x66,0x66,0x7C,0x7E,0xE7,0xC3,0xE7,0x7E,0x3C,
// '9'
0x39,0x01,0x07,0x0C,0x01,0x09,
0x38,0xFB,0x1E,0x3C,0x6F,0x8F,0x0C,0x18,0x60,0xC1,0x00,
// 'D'
0x44,0x01,0x09,0x0C,0x01,0x0B,
0xFC,0x7F,0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0x6C,0x01,0x02,0x0C,0x01,0x04,
0xFF,0xFF,0xFF,
// 'm'
0x6D,0x04,0x0E,0x09,0x01,0x10,
0xDE,0x7B,0xFF,0xFE,0x79,0xF0,0xC3,0xC3,0x0F,0x0C,0x3C,0x30,0xF0,0xC3,0xC3,0x0C,
// 'n'
0x6E,0x04,0x08,0x09,0x01,0x0A,
0xDE,0xFF,0xE7,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,
// 'o'
0x6F,0x04,0x08,0x09,0x01,0x0A,
0x3C,0x7E,0xE7,0xC3,0xC3,0xC3,0xE7,0x7E,0x3C,
// 'p'
0x70,0x03,0x09,0x0C,0x01,0x0B,
0xDE,0x7F,0xB8,0xF8,0x3C,0x1E,0x0F,0x8F,0xFE,0xDE,0x60,0x30,0x18,0x00,
// 'q'
0x71,0x04,0x09,0x0C,0x01,0x0B,
0x3D,0xBF,0xF8,0xF8,0x3C,0x1E,0x0F,0x8E,0xFF,0x3D,0x80,0xC0,0x60,0x30,
// 'r'
0x72,0x04,0x05,0x09,0x01,0x05,
0xD7,0xB1,0x8C,0x63,0x18,0xC0,
// 's'
0x73,0x04,0x06,0x09,0x00,0x06,
0x7B,0xFC,0xB8,0x78,0x74,0xFF,0x78,
// 't'
0x74,0x02,0x04,0x0C,0x00,0x04,
0x66,0x6F,0xF6,0x66,0x66,0x66,
// 'u'
0x75,0x04,0x08,0x09,0x01,0x0A,
0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xE7,0x7E,0x3C,
// 'v'
0x76,0x04,0x0B,0x09,0xFF,0x09,
0x60,0xCE,0x38,0xC6,0x1D,0xC1,0xB0,0x3E,0x03,0x80,0x70,0x04,0x00,
// 'w'
0x77,0x04,0x0F,0x09,0x00,0x0F,
0x61,0x0C,0xC7,0x19,0xCE,0x71,0xBE,0xC3,0x6F,0x87,0xDE,0x07,0x1C,0x0E,0x38,0x08,0x20,
// 'x'
0x78,0x04,0x09,0x09,0x00,0x09,
0xE3,0xB1,0x8D,0x83,0x81,0xC0,0xE0,0xD8,0xC6,0xE3,0x80,
// 'y'
0x79,0x02,0x0B,0x0C,0x00,0x0B,
0x60,0xCE,0x18,0xC6,0x18,0xC1,0xB0,0x3E,0x03,0x80,0x70,0x0C,0x01,0x80,0x60,0x0C,0x00,
// 'z'
0x7A,0x04,0x07,0x09,0x00,0x07,
0x7E,0xF8,0x70,0xC3,0x86,0x1C,0x3F,0xFE,
// '{'
0x7B,0x01,0x06,0x0F,0x00,0x05,
0x1C,0xF3,0x0C,0x31,0xCE,0x38,0x70,0xC3,0x0C,0x30,0xF1,0xC0,
// '|'
0x7C,0x01,0x01,0x0F,0x04,0x0A,
0xFF,0xFE,
// '}'
0x7D,0x01,0x06,0x0F,0x00,0x05,
0xE3,0xC3,0x0C,0x30,0xE1,0xC7,0x38,0xC3,0x0C,0x33,0xCE,0x00,
// '~'
0x7E,0x06,0x09,0x03,0x00,0x0A,
0x78,0xFF,0xE3,0xC0,
// Terminator
0xFF
};