components/tft/Ubuntu16.c

changeset 0
b74b0e4902c3
equal deleted inserted replaced
-1:000000000000 0:b74b0e4902c3
1 // This comes with no warranty, implied or otherwise
2
3 // This data structure was designed to support Proportional fonts
4 // on Arduinos. It can however handle any ttf font that has been converted
5 // using the conversion program. These could be fixed width or proportional
6 // fonts. Individual characters do not have to be multiples of 8 bits wide.
7 // Any width is fine and does not need to be fixed.
8
9 // The data bits are packed to minimize data requirements, but the tradeoff
10 // is that a header is required per character.
11
12 // Ubuntu16.c
13 // Point Size : 16
14 // Memory usage : 1433 bytes
15 // # characters : 95
16
17 // Header Format (to make Arduino UTFT Compatible):
18 // ------------------------------------------------
19 // Character Width (Used as a marker to indicate use this format. i.e.: = 0x00)
20 // Character Height
21 // First Character (Reserved. 0x00)
22 // Number Of Characters (Reserved. 0x00)
23
24 const unsigned char tft_Ubuntu16[] =
25 {
26 0x00, 0x10, 0x00, 0x00,
27
28 // Individual Character Format:
29 // ----------------------------
30 // Character Code
31 // Adjusted Y Offset
32 // Width
33 // Height
34 // xOffset
35 // xDelta (the distance to move the cursor. Effective width of the character.)
36 // Data[n]
37
38 // NOTE: You can remove any of these characters if they are not needed in
39 // your application. The first character number in each Glyph indicates
40 // the ASCII character code. Therefore, these do not have to be sequential.
41 // Just remove all the content for a particular character to save space.
42
43 // ' '
44 0x20,0x0D,0x00,0x00,0x00,0x04,
45
46 // '!'
47 0x21,0x02,0x01,0x0B,0x01,0x04,
48 0xFC,0x60,
49 // '"'
50 0x22,0x00,0x04,0x04,0x01,0x07,
51 0x99,0x99,
52 // '#'
53 0x23,0x02,0x09,0x0B,0x01,0x0B,
54 0x11,0x08,0x84,0x5F,0xF2,0x21,0x10,0x89,0xFF,0x44,0x22,0x11,0x00,
55 // '$'
56 0x24,0x00,0x07,0x10,0x01,0x09,
57 0x10,0x20,0xF6,0x08,0x10,0x18,0x08,0x0C,0x0C,0x08,0x3F,0xC2,0x04,0x00,
58 // '%'
59 0x25,0x02,0x0C,0x0B,0x01,0x0E,
60 0x70,0x4D,0x88,0x89,0x08,0x90,0xDA,0x07,0x4E,0x05,0xB0,0x91,0x09,0x11,0x1B,0x20,0xE0,
61 // '&'
62 0x26,0x02,0x0A,0x0B,0x01,0x0B,
63 0x3C,0x18,0x84,0x21,0x08,0x2C,0x0C,0x04,0x8A,0x10,0x83,0x30,0xC7,0xC8,
64 // '''
65 0x27,0x00,0x01,0x04,0x01,0x04,
66 0xF0,
67 // '('
68 0x28,0x00,0x04,0x10,0x01,0x05,
69 0x02,0x44,0x48,0x88,0x88,0x84,0x44,0x20,
70 // ')'
71 0x29,0x00,0x04,0x10,0x00,0x05,
72 0x04,0x22,0x21,0x11,0x11,0x12,0x22,0x40,
73 // '*'
74 0x2A,0x02,0x09,0x06,0x00,0x08,
75 0x08,0x24,0x8F,0x83,0x81,0x41,0x10,
76 // '+'
77 0x2B,0x05,0x07,0x07,0x01,0x09,
78 0x10,0x20,0x47,0xF1,0x02,0x04,0x00,
79 // ','
80 0x2C,0x0B,0x02,0x05,0x00,0x04,
81 0x54,0x80,
82 // '-'
83 0x2D,0x08,0x04,0x01,0x01,0x06,
84 0xF0,
85 // '.'
86 0x2E,0x0B,0x01,0x02,0x01,0x04,
87 0xC0,
88 // '/'
89 0x2F,0x00,0x07,0x10,0x00,0x06,
90 0x02,0x08,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x08,0x10,0x40,
91 // '0'
92 0x30,0x02,0x07,0x0B,0x01,0x09,
93 0x38,0x8B,0x1C,0x18,0x30,0x60,0xC1,0x86,0x88,0xE0,
94 // '1'
95 0x31,0x02,0x04,0x0B,0x01,0x09,
96 0x13,0x59,0x11,0x11,0x11,0x10,
97 // '2'
98 0x32,0x02,0x06,0x0B,0x01,0x09,
99 0x7A,0x30,0x41,0x08,0x21,0x08,0x42,0x0F,0xC0,
100 // '3'
101 0x33,0x02,0x07,0x0B,0x01,0x09,
102 0x78,0x08,0x08,0x10,0x47,0x01,0x01,0x02,0x0B,0xE0,
103 // '4'
104 0x34,0x02,0x07,0x0B,0x01,0x09,
105 0x04,0x18,0x51,0x22,0x48,0xA1,0x7F,0x04,0x08,0x10,
106 // '5'
107 0x35,0x02,0x07,0x0B,0x01,0x09,
108 0x7E,0x81,0x02,0x07,0x81,0x80,0x81,0x02,0x0B,0xE0,
109 // '6'
110 0x36,0x02,0x07,0x0B,0x01,0x09,
111 0x1C,0x61,0x00,0x0F,0x90,0xA0,0xC1,0x82,0x88,0xE0,
112 // '7'
113 0x37,0x02,0x07,0x0B,0x01,0x09,
114 0xFE,0x04,0x10,0x40,0x82,0x04,0x08,0x20,0x40,0x80,
115 // '8'
116 0x38,0x02,0x07,0x0B,0x01,0x09,
117 0x39,0x8A,0x0C,0x14,0x47,0x11,0x41,0x83,0x89,0xE0,
118 // '9'
119 0x39,0x02,0x07,0x0B,0x01,0x09,
120 0x38,0x8A,0x0C,0x18,0x28,0x4F,0x81,0x04,0x11,0xC0,
121 // ':'
122 0x3A,0x05,0x01,0x08,0x01,0x04,
123 0xC3,
124 // ';'
125 0x3B,0x05,0x02,0x0B,0x00,0x04,
126 0x50,0x05,0x48,
127 // '<'
128 0x3C,0x05,0x08,0x07,0x01,0x09,
129 0x02,0x0C,0x30,0x60,0x30,0x0C,0x02,
130 // '='
131 0x3D,0x06,0x07,0x04,0x01,0x09,
132 0xFE,0x00,0x07,0xF0,
133 // '>'
134 0x3E,0x05,0x09,0x07,0x00,0x09,
135 0x40,0x1C,0x01,0x80,0x70,0x61,0xC1,0x00,
136 // '?'
137 0x3F,0x02,0x06,0x0B,0x01,0x07,
138 0x78,0x30,0x41,0x18,0xC2,0x00,0x00,0x82,0x00,
139 // '@'
140 0x40,0x02,0x0D,0x0D,0x01,0x0F,
141 0x0F,0x81,0x83,0x10,0x0C,0x8F,0xA8,0x84,0xC8,0x26,0x41,0x32,0x09,0x88,0x5A,0x3F,0x90,0x00,0x60,0x00,0xFC,0x00,
142 // 'A'
143 0x41,0x02,0x0B,0x0B,0x00,0x0B,
144 0x04,0x01,0xC0,0x28,0x08,0x81,0x10,0x61,0x08,0x21,0xFC,0x60,0x48,0x0B,0x00,0x80,
145 // 'B'
146 0x42,0x02,0x08,0x0B,0x01,0x0A,
147 0xF8,0x86,0x82,0x82,0x86,0xFC,0x82,0x81,0x81,0x82,0xFC,
148 // 'C'
149 0x43,0x02,0x09,0x0B,0x01,0x0B,
150 0x1F,0x10,0x10,0x10,0x08,0x04,0x02,0x01,0x00,0x40,0x30,0x07,0xC0,
151 // 'D'
152 0x44,0x02,0x09,0x0B,0x01,0x0B,
153 0xFC,0x41,0x20,0x50,0x18,0x0C,0x06,0x03,0x01,0x81,0x41,0x3F,0x00,
154 // 'E'
155 0x45,0x02,0x07,0x0B,0x01,0x09,
156 0xFF,0x02,0x04,0x08,0x1F,0xA0,0x40,0x81,0x03,0xF8,
157 // 'F'
158 0x46,0x02,0x07,0x0B,0x01,0x09,
159 0xFF,0x02,0x04,0x08,0x1F,0xA0,0x40,0x81,0x02,0x00,
160 // 'G'
161 0x47,0x02,0x09,0x0B,0x01,0x0B,
162 0x1F,0x10,0x10,0x10,0x08,0x04,0x02,0x03,0x01,0x40,0xB0,0x47,0xE0,
163 // 'H'
164 0x48,0x02,0x09,0x0B,0x01,0x0B,
165 0x80,0xC0,0x60,0x30,0x18,0x0F,0xFE,0x03,0x01,0x80,0xC0,0x60,0x20,
166 // 'I'
167 0x49,0x02,0x01,0x0B,0x01,0x03,
168 0xFF,0xE0,
169 // 'J'
170 0x4A,0x02,0x07,0x0B,0x00,0x08,
171 0x02,0x04,0x08,0x10,0x20,0x40,0x81,0x02,0x09,0xE0,
172 // 'K'
173 0x4B,0x02,0x09,0x0B,0x01,0x0A,
174 0x81,0x41,0x23,0x12,0x0A,0x06,0x02,0xC1,0x10,0x86,0x40,0xA0,0x20,
175 // 'L'
176 0x4C,0x02,0x07,0x0B,0x01,0x08,
177 0x81,0x02,0x04,0x08,0x10,0x20,0x40,0x81,0x03,0xF8,
178 // 'M'
179 0x4D,0x02,0x0B,0x0B,0x01,0x0D,
180 0x40,0x4C,0x19,0x01,0x28,0xA5,0x14,0x94,0xB2,0x9C,0x33,0x84,0x30,0x06,0x00,0x80,
181 // 'N'
182 0x4E,0x02,0x09,0x0B,0x01,0x0B,
183 0x80,0xE0,0x68,0x32,0x19,0x0C,0x46,0x13,0x05,0x82,0xC0,0xE0,0x20,
184 // 'O'
185 0x4F,0x02,0x0B,0x0B,0x01,0x0D,
186 0x1F,0x04,0x11,0x01,0x40,0x18,0x03,0x00,0x60,0x0C,0x01,0x40,0x44,0x10,0x7C,0x00,
187 // 'P'
188 0x50,0x02,0x08,0x0B,0x01,0x0A,
189 0xFC,0x82,0x81,0x81,0x81,0x82,0xFC,0x80,0x80,0x80,0x80,
190 // 'Q'
191 0x51,0x02,0x0B,0x0E,0x01,0x0D,
192 0x1F,0x04,0x11,0x01,0x40,0x18,0x03,0x00,0x60,0x0C,0x01,0x40,0x44,0x10,0x78,0x02,0x00,0x30,0x01,0x80,
193 // 'R'
194 0x52,0x02,0x09,0x0B,0x01,0x0A,
195 0xFC,0x41,0x20,0x50,0x28,0x14,0x13,0xF1,0x08,0x82,0x40,0xA0,0x20,
196 // 'S'
197 0x53,0x02,0x08,0x0B,0x01,0x09,
198 0x3C,0xC2,0x80,0x80,0x40,0x1C,0x06,0x02,0x02,0x06,0x78,
199 // 'T'
200 0x54,0x02,0x09,0x0B,0x00,0x09,
201 0xFF,0x84,0x02,0x01,0x00,0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x00,
202 // 'U'
203 0x55,0x02,0x09,0x0B,0x01,0x0B,
204 0x80,0xC0,0x60,0x30,0x18,0x0C,0x06,0x03,0x01,0x80,0xA0,0x8F,0x80,
205 // 'V'
206 0x56,0x02,0x09,0x0B,0x00,0x09,
207 0x80,0xE0,0xD0,0x48,0x26,0x21,0x10,0x88,0x28,0x14,0x0E,0x02,0x00,
208 // 'W'
209 0x57,0x02,0x0D,0x0B,0x00,0x0D,
210 0x80,0x0E,0x10,0xD0,0x84,0x8E,0x24,0x51,0x22,0x88,0xA2,0x85,0x14,0x38,0xE0,0xC2,0x04,0x10,
211 // 'X'
212 0x58,0x02,0x09,0x0B,0x00,0x09,
213 0xC1,0xA0,0x88,0x86,0xC1,0x40,0x60,0x70,0x6C,0x22,0x20,0xB0,0x60,
214 // 'Y'
215 0x59,0x02,0x09,0x0B,0x00,0x09,
216 0x80,0xA0,0x90,0x44,0x41,0x40,0xA0,0x20,0x10,0x08,0x04,0x02,0x00,
217 // 'Z'
218 0x5A,0x02,0x07,0x0B,0x01,0x09,
219 0xFE,0x04,0x10,0x41,0x02,0x08,0x00,0x41,0x03,0xF8,
220 // '['
221 0x5B,0x00,0x03,0x10,0x02,0x05,
222 0xF2,0x49,0x24,0x92,0x49,0x27,
223 // '\'
224 0x5C,0x00,0x07,0x10,0x00,0x06,
225 0x80,0x81,0x02,0x02,0x04,0x08,0x08,0x10,0x10,0x20,0x40,0x40,0x81,0x01,
226 // ']'
227 0x5D,0x00,0x03,0x10,0x00,0x05,
228 0xE4,0x92,0x49,0x24,0x92,0x4F,
229 // '^'
230 0x5E,0x02,0x07,0x06,0x01,0x09,
231 0x10,0x70,0xA2,0x24,0x50,0x40,
232 // '_'
233 0x5F,0x0F,0x08,0x01,0x00,0x08,
234 0xFF,
235 // '`'
236 0x60,0x01,0x04,0x03,0x01,0x06,
237 0x86,0x10,
238 // 'a'
239 0x61,0x05,0x06,0x08,0x01,0x08,
240 0x78,0x30,0x5F,0xC6,0x18,0x5F,
241 // 'b'
242 0x62,0x01,0x07,0x0C,0x01,0x09,
243 0x81,0x02,0x04,0x0F,0x90,0xA0,0xC1,0x83,0x06,0x17,0xC0,
244 // 'c'
245 0x63,0x05,0x06,0x08,0x01,0x08,
246 0x3D,0x08,0x20,0x82,0x04,0x0F,
247 // 'd'
248 0x64,0x01,0x07,0x0C,0x01,0x09,
249 0x02,0x04,0x08,0x13,0xE8,0x60,0xC1,0x83,0x05,0x09,0xF0,
250 // 'e'
251 0x65,0x05,0x07,0x08,0x01,0x09,
252 0x3C,0x8A,0x0F,0xF8,0x10,0x10,0x1E,
253 // 'f'
254 0x66,0x01,0x05,0x0C,0x01,0x06,
255 0x7E,0x21,0x0F,0xC2,0x10,0x84,0x21,0x00,
256 // 'g'
257 0x67,0x05,0x07,0x0B,0x01,0x09,
258 0x3E,0x86,0x0C,0x18,0x30,0x50,0x9F,0x02,0x0B,0xE0,
259 // 'h'
260 0x68,0x01,0x07,0x0C,0x01,0x09,
261 0x81,0x02,0x04,0x0F,0x90,0xE0,0xC1,0x83,0x06,0x0C,0x10,
262 // 'i'
263 0x69,0x01,0x03,0x0C,0x00,0x03,
264 0x48,0x04,0x92,0x49,0x20,
265 // 'j'
266 0x6A,0x01,0x04,0x0F,0xFF,0x03,
267 0x22,0x00,0x22,0x22,0x22,0x22,0x22,0xC0,
268 // 'k'
269 0x6B,0x01,0x06,0x0C,0x01,0x08,
270 0x82,0x08,0x20,0x8A,0x4A,0x30,0xA2,0x48,0xA1,
271 // 'l'
272 0x6C,0x01,0x04,0x0C,0x01,0x04,
273 0x88,0x88,0x88,0x88,0x88,0x86,
274 // 'm'
275 0x6D,0x05,0x0B,0x08,0x01,0x0D,
276 0xFB,0xD1,0x8E,0x10,0xC2,0x18,0x43,0x08,0x61,0x0C,0x21,
277 // 'n'
278 0x6E,0x05,0x07,0x08,0x01,0x09,
279 0xFD,0x0E,0x0C,0x18,0x30,0x60,0xC1,
280 // 'o'
281 0x6F,0x05,0x08,0x08,0x01,0x0A,
282 0x3C,0x42,0x81,0x81,0x81,0x81,0x42,0x3C,
283 // 'p'
284 0x70,0x05,0x07,0x0B,0x01,0x09,
285 0xF9,0x0A,0x0C,0x18,0x30,0x61,0x7C,0x81,0x02,0x00,
286 // 'q'
287 0x71,0x05,0x07,0x0B,0x01,0x09,
288 0x3E,0x86,0x0C,0x18,0x30,0x50,0x9F,0x02,0x04,0x08,
289 // 'r'
290 0x72,0x05,0x05,0x08,0x01,0x06,
291 0xFC,0x21,0x08,0x42,0x10,
292 // 's'
293 0x73,0x05,0x05,0x08,0x01,0x07,
294 0x7C,0x20,0xC3,0x04,0x3E,
295 // 't'
296 0x74,0x02,0x05,0x0B,0x01,0x07,
297 0x84,0x21,0xF8,0x42,0x10,0x84,0x1E,
298 // 'u'
299 0x75,0x05,0x07,0x08,0x01,0x09,
300 0x83,0x06,0x0C,0x18,0x30,0x50,0xBF,
301 // 'v'
302 0x76,0x05,0x07,0x08,0x00,0x07,
303 0x83,0x05,0x12,0x22,0x85,0x0E,0x08,
304 // 'w'
305 0x77,0x05,0x0D,0x08,0x00,0x0D,
306 0x82,0x0C,0x10,0x51,0xC4,0x8A,0x26,0x5B,0x14,0x50,0xE3,0x82,0x08,
307 // 'x'
308 0x78,0x05,0x08,0x08,0x00,0x08,
309 0xC3,0x66,0x24,0x18,0x18,0x24,0x42,0xC3,
310 // 'y'
311 0x79,0x05,0x07,0x0B,0x00,0x07,
312 0x82,0x89,0x12,0x22,0x85,0x04,0x08,0x10,0x43,0x00,
313 // 'z'
314 0x7A,0x05,0x06,0x08,0x01,0x08,
315 0xFC,0x10,0x84,0x21,0x08,0x3F,
316 // '{'
317 0x7B,0x00,0x05,0x10,0x00,0x05,
318 0x19,0x08,0x42,0x10,0x98,0x61,0x08,0x42,0x10,0x83,
319 // '|'
320 0x7C,0x00,0x01,0x10,0x02,0x05,
321 0xFF,0xFF,
322 // '}'
323 0x7D,0x00,0x05,0x10,0x00,0x05,
324 0xC1,0x08,0x42,0x10,0x83,0x31,0x08,0x42,0x10,0x98,
325 // '~'
326 0x7E,0x07,0x07,0x02,0x01,0x09,
327 0x73,0x18,
328
329 // Terminator
330 0xFF
331 };

mercurial