forked from pantata/TFT9341SPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gothic18b.c
333 lines (322 loc) · 11.3 KB
/
Gothic18b.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
// 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.
// Gothic18b.c
// Point Size : 18
// Memory usage : 1776 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 Gothic18b[] PROGMEM =
{
0x00, 0x10, 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,0x0E,0x00,0x00,0x00,0x05,
// '!'
0x21,0x01,0x02,0x0D,0x01,0x05,
0xFF,0xFF,0xF3,0xC0,
// '"'
0x22,0x01,0x03,0x04,0x00,0x06,
0xB6,0xD0,
// '#'
0x23,0x01,0x0A,0x0D,0x00,0x0B,
0x19,0x86,0x61,0x99,0xFF,0x7F,0xCC,0xC3,0x33,0xFF,0xFF,0xCC,0xC6,0x61,0x98,0x66,0x00,
// '$'
0x24,0x00,0x09,0x10,0x00,0x0A,
0x0C,0x0F,0x0F,0xCC,0x66,0x03,0x80,0xF0,0x1E,0x03,0x80,0xD0,0x7C,0x77,0xF1,0xF0,0x30,0x18,
// '%'
0x25,0x01,0x0E,0x0E,0x00,0x0F,
0x70,0x73,0xFF,0x8C,0xFE,0x33,0x10,0xFC,0x81,0xE2,0x00,0x10,0x00,0x9E,0x02,0xFC,0x13,0x30,0x8C,0xC2,0x3F,0x10,0x78,0x80,0x00,
// '&'
0x26,0x02,0x0B,0x0C,0x00,0x0C,
0x3C,0x0F,0xC1,0x98,0x33,0x03,0xC0,0x78,0x1F,0x07,0xF4,0xCF,0xD8,0xF3,0xFE,0x3E,0xE0,
// '''
0x27,0x01,0x01,0x04,0x01,0x04,
0xF0,
// '('
0x28,0x01,0x05,0x11,0x00,0x07,
0x3B,0x98,0xCE,0x63,0x18,0xC6,0x31,0x8E,0x31,0x86,0x38,
// ')'
0x29,0x01,0x05,0x11,0x00,0x07,
0xE3,0x0C,0x63,0x8C,0x63,0x18,0xC6,0x33,0x98,0xCE,0xE0,
// '*'
0x2A,0x01,0x08,0x07,0x00,0x08,
0x18,0x5A,0xFF,0x7E,0xFF,0x5A,0x18,
// '+'
0x2B,0x04,0x08,0x08,0x01,0x0B,
0x18,0x18,0x18,0xFF,0xFF,0x18,0x18,0x18,
// ','
0x2C,0x0B,0x04,0x05,0x00,0x05,
0x03,0x66,0x40,
// '-'
0x2D,0x08,0x04,0x02,0x02,0x08,
0xFF,
// '.'
0x2E,0x0C,0x02,0x02,0x01,0x05,
0xF0,
// '/'
0x2F,0x01,0x07,0x10,0x00,0x08,
0x0C,0x18,0x30,0x61,0x83,0x06,0x18,0x30,0x60,0xC3,0x06,0x0C,0x18,0x60,
// '0'
0x30,0x01,0x09,0x0D,0x00,0x0A,
0x3C,0x3F,0x98,0xD8,0x3C,0x1E,0x0F,0x07,0x83,0xC1,0xE0,0xD8,0xCF,0xE3,0xE0,
// '1'
0x31,0x01,0x05,0x0D,0x02,0x0A,
0x7F,0xC6,0x31,0x8C,0x63,0x18,0xC6,0x31,0x80,
// '2'
0x32,0x01,0x09,0x0D,0x00,0x0A,
0x3E,0x3F,0xB8,0xF8,0x30,0x18,0x1C,0x1C,0x1C,0x1C,0x1C,0x1C,0x1F,0xFF,0xF8,
// '3'
0x33,0x01,0x09,0x0D,0x00,0x0A,
0x1C,0x1F,0x18,0xC0,0x60,0x70,0xF0,0x7C,0x07,0x01,0xE0,0xF8,0xEF,0xE3,0xE0,
// '4'
0x34,0x01,0x09,0x0D,0x00,0x0A,
0x03,0x03,0x81,0xC1,0xE1,0xB1,0xD8,0xCC,0xC6,0xFF,0xFF,0xC0,0xC0,0x60,0x30,
// '5'
0x35,0x01,0x09,0x0D,0x00,0x0A,
0x1F,0x8F,0xCE,0x07,0x03,0x01,0xF1,0xFC,0x67,0x01,0x80,0xFC,0xEF,0xE3,0xE0,
// '6'
0x36,0x01,0x08,0x0D,0x01,0x0A,
0x0C,0x1C,0x18,0x30,0x30,0x7C,0x7E,0xE7,0xC3,0xC3,0xE7,0x7E,0x3C,
// '7'
0x37,0x01,0x08,0x0D,0x01,0x0A,
0xFF,0xFF,0x06,0x06,0x0C,0x0C,0x1C,0x18,0x38,0x30,0x30,0x60,0x20,
// '8'
0x38,0x01,0x08,0x0D,0x01,0x0A,
0x3C,0x7C,0x66,0x66,0x66,0x7C,0x7E,0xE7,0xC3,0xC3,0xE7,0x7E,0x3C,
// '9'
0x39,0x01,0x08,0x0D,0x01,0x0A,
0x3C,0x7E,0xE7,0xC3,0xC3,0xE7,0x7E,0x3E,0x0C,0x0C,0x18,0x38,0x30,
// ':'
0x3A,0x04,0x02,0x0A,0x01,0x05,
0xF0,0x00,0xF0,
// ';'
0x3B,0x04,0x04,0x0C,0x00,0x05,
0x66,0x00,0x00,0x00,0x36,0x64,
// '<'
0x3C,0x01,0x09,0x0D,0x01,0x0B,
0x00,0x00,0x40,0xE1,0xE3,0xC7,0x83,0x81,0xE0,0x3C,0x07,0x80,0xE0,0x10,0x00,
// '='
0x3D,0x05,0x09,0x06,0x01,0x0B,
0xFF,0xFF,0xC0,0x00,0x0F,0xFF,0xFC,
// '>'
0x3E,0x01,0x09,0x0D,0x01,0x0B,
0x00,0x40,0x38,0x0F,0x01,0xE0,0x3C,0x0E,0x0F,0x1E,0x3C,0x38,0x10,0x00,0x00,
// '?'
0x3F,0x01,0x08,0x0D,0x01,0x0A,
0x3C,0x7E,0xE3,0xC3,0x07,0x0E,0x0C,0x18,0x18,0x00,0x00,0x18,0x18,
// '@'
0x40,0x01,0x0D,0x0D,0x00,0x0D,
0x0F,0x81,0x83,0x18,0x04,0x8E,0xF8,0xFE,0xCE,0x66,0x63,0x33,0x38,0x9F,0xC2,0x7E,0x18,0x00,0x20,0x60,0xFC,0x00,
// 'A'
0x41,0x01,0x0D,0x0D,0x00,0x0D,
0x02,0x00,0x38,0x01,0xC0,0x1F,0x00,0xD8,0x06,0xC0,0x63,0x03,0x18,0x3F,0xE1,0xFF,0x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C0,0xF0,0x3C,0x0F,0x03,0xC0,0xF0,0x3C,0x0F,0x03,0xC0,0xF0,0x3E,0x1D,0xFE,0x1F,0x00,
// 'V'
0x56,0x01,0x0B,0x0D,0x00,0x0C,
0x60,0xCC,0x19,0x83,0x18,0xC3,0x18,0x63,0x06,0xC0,0xD8,0x1F,0x03,0xE0,0x38,0x07,0x00,0xE0,
// 'W'
0x57,0x01,0x0F,0x0D,0x00,0x10,
0x63,0x8C,0xC7,0x19,0x8E,0x33,0x1C,0x63,0x7D,0x86,0xFB,0x0D,0xB6,0x1F,0x7C,0x3E,0xF8,0x38,0xE0,0x71,0xC0,0xE3,0x81,0xC7,0x00,
// 'X'
0x58,0x01,0x0D,0x0D,0xFF,0x0C,
0x30,0x61,0xC7,0x06,0x30,0x1B,0x00,0xF0,0x03,0x80,0x1C,0x01,0xF0,0x0D,0x80,0xC6,0x0C,0x18,0x60,0xC6,0x03,0x00,
// 'Y'
0x59,0x01,0x0A,0x0D,0x00,0x0B,
0x61,0x98,0x63,0x30,0xCC,0x1E,0x07,0x80,0xC0,0x30,0x0C,0x03,0x00,0xC0,0x30,0x0C,0x00,
// 'Z'
0x5A,0x01,0x08,0x0D,0x00,0x09,
0xFF,0xFE,0x06,0x0C,0x0C,0x18,0x18,0x18,0x30,0x30,0x60,0x7F,0xFF,
// '['
0x5B,0x01,0x03,0x11,0x01,0x06,
0xFF,0x6D,0xB6,0xDB,0x6D,0xB7,0xE0,
// '\'
0x5C,0x01,0x09,0x10,0x02,0x0C,
0x60,0x30,0x18,0x06,0x03,0x01,0x80,0x60,0x30,0x18,0x06,0x03,0x01,0x80,0x60,0x30,0x0C,0x06,
// ']'
0x5D,0x01,0x03,0x11,0x00,0x06,
0xFD,0xB6,0xDB,0x6D,0xB6,0xDF,0xE0,
// '^'
0x5E,0x01,0x09,0x0A,0x01,0x0B,
0x1C,0x0E,0x07,0x07,0xC3,0x61,0xB1,0xDC,0xC6,0x63,0x31,0x80,
// '_'
0x5F,0x0F,0x09,0x01,0x00,0x09,
0xFF,0x80,
// '`'
0x60,0x00,0x05,0x03,0x01,0x08,
0x61,0x86,
// 'a'
0x61,0x04,0x0A,0x0A,0x01,0x0C,
0x1E,0xDF,0xF6,0x1F,0x03,0xC0,0xF0,0x3C,0x0D,0x87,0x7F,0xC7,0xB0,
// 'b'
0x62,0x01,0x0A,0x0D,0x01,0x0C,
0xC0,0x30,0x0C,0x03,0x78,0xFF,0xB8,0x6C,0x0F,0x03,0xC0,0xF0,0x3E,0x1B,0xFE,0xDE,0x00,
// 'c'
0x63,0x04,0x0A,0x0A,0x01,0x0C,
0x1F,0x1F,0xF6,0x1B,0x00,0xC0,0x30,0x0C,0x01,0x86,0x3F,0xC7,0xC0,
// 'd'
0x64,0x01,0x0A,0x0D,0x01,0x0C,
0x00,0xC0,0x30,0x0C,0x7B,0x7F,0xD8,0x7C,0x0F,0x03,0xC0,0xF0,0x36,0x1D,0xFF,0x1E,0xC0,
// 'e'
0x65,0x04,0x0A,0x0A,0x01,0x0C,
0x1E,0x1F,0xE6,0x1B,0x03,0xFF,0xFF,0xFC,0x01,0x8C,0x7F,0x87,0x80,
// 'f'
0x66,0x01,0x05,0x0D,0x00,0x05,
0x3B,0xD9,0xFF,0xB1,0x8C,0x63,0x18,0xC6,0x00,
// 'g'
0x67,0x04,0x0B,0x0E,0x00,0x0C,
0x0F,0x67,0xFC,0xC3,0xB0,0x36,0x06,0xC0,0xD8,0x19,0x87,0x3F,0xE1,0xEC,0x01,0xB8,0x73,0xFC,0x3E,0x00,
// 'h'
0x68,0x01,0x09,0x0D,0x01,0x0B,
0xC0,0x60,0x30,0x1B,0xCF,0xF7,0x1F,0x07,0x83,0xC1,0xE0,0xF0,0x78,0x3C,0x18,
// 'i'
0x69,0x01,0x02,0x0D,0x01,0x04,
0xF3,0xFF,0xFF,0xC0,
// 'j'
0x6A,0x01,0x04,0x11,0xFF,0x05,
0x33,0x03,0x33,0x33,0x33,0x33,0x33,0x3F,0xE0,
// 'k'
0x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0x76,0x04,0x0B,0x0A,0xFF,0x0A,
0x60,0xCC,0x18,0xC6,0x18,0xC1,0xB0,0x36,0x07,0xC0,0x70,0x0E,0x00,0x80,
// 'w'
0x77,0x04,0x0F,0x0A,0xFF,0x0E,
0x61,0x0C,0xC7,0x19,0x8E,0x31,0xBE,0xC3,0x7D,0x87,0xDF,0x07,0x1C,0x0E,0x38,0x1C,0x70,0x10,0x40,
// 'x'
0x78,0x04,0x0A,0x0A,0x00,0x0A,
0xE1,0xDC,0xE3,0x30,0x78,0x0C,0x07,0x81,0xE0,0xCC,0x61,0xB8,0x70,
// 'y'
0x79,0x04,0x0A,0x0E,0x00,0x0A,
0x61,0x98,0x67,0x38,0xCC,0x33,0x0F,0x81,0xE0,0x78,0x0C,0x03,0x01,0xC0,0x60,0x18,0x0C,0x00,
// 'z'
0x7A,0x04,0x08,0x0A,0x00,0x08,
0x7F,0x7E,0x04,0x0C,0x18,0x18,0x30,0x20,0x7F,0xFF,
// '{'
0x7B,0x01,0x06,0x11,0x00,0x06,
0x1C,0xF3,0x0C,0x30,0xC3,0x1C,0xE3,0x87,0x0C,0x30,0xC3,0x0F,0x1C,
// '|'
0x7C,0x01,0x02,0x11,0x04,0x0B,
0xFF,0xFF,0xFF,0xFF,0xC0,
// '}'
0x7D,0x01,0x06,0x11,0x00,0x06,
0xE3,0xC3,0x0C,0x30,0xC3,0x0E,0x1C,0x73,0x8C,0x30,0xC3,0x3C,0xE0,
// '~'
0x7E,0x06,0x09,0x03,0x01,0x0B,
0x78,0xFF,0xE3,0xC0,
// Terminator
0xFF
};