forked from iPodLinux-Community/Floydzilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
matrixfont.h
160 lines (151 loc) · 6.64 KB
/
matrixfont.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/*
* Copyright (C) 2004 Alastair S
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __MATRIXFONT_H__
#define __MATRIXFONT_H__
#define COL_W 6
#define COL_H 10
#define MAXCHARS 63
static GR_BITMAP matrix_code_font[MAXCHARS+1][10] = {
{0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000}, // blank
{0x0300, 0x3300, 0x4B00, 0x5F00, 0x5700,
0x5700, 0x6700, 0x6B00, 0x3B00, 0x0300}, // 0
{0x3300, 0x7300, 0x7300, 0x3300, 0x3300,
0x3300, 0x3300, 0x3300, 0x0000, 0x0000}, // 1
{0x0000, 0x3000, 0x4800, 0x4000, 0x4000,
0x3000, 0x1800, 0x0800, 0x7800, 0x0000}, // 2
{0x0000, 0x2000, 0x5800, 0x0800, 0x0800,
0x3800, 0x3000, 0x1800, 0x7800, 0x0000}, // 3
{0x0000, 0x1000, 0x2000, 0x2000, 0x4000,
0x5000, 0x7000, 0x1000, 0x1000, 0x0000}, // 4
{0x0000, 0x7800, 0x0800, 0x0800, 0x7800,
0x4000, 0x4000, 0x4000, 0x3800, 0x0000}, // 5
{0x0000, 0x0800, 0x1000, 0x2000, 0x7000,
0x4800, 0x4400, 0x4800, 0x7800, 0x0000}, // 6
{0x0300, 0x7F00, 0x0B00, 0x0B00, 0x1300,
0x2300, 0x2300, 0x2300, 0x2300, 0x0300}, // 7
{0x0000, 0x1000, 0x6800, 0x4800, 0x3000,
0x7800, 0x4C00, 0x4C00, 0x7800, 0x0000}, // 8
{0x0000, 0x3000, 0x6800, 0x4C00, 0x4C00,
0x7800, 0x2000, 0x3000, 0x1800, 0x0000}, // 9
{0x0000, 0x0000, 0x3000, 0x3000, 0x5800,
0x4800, 0x7800, 0x4800, 0x4C00, 0x0000}, // A (11)
{0x0000, 0x0000, 0x7000, 0x4800, 0x4800,
0x7800, 0x4800, 0x4C00, 0x7800, 0x0000}, // B
{0x0000, 0x3000, 0x4800, 0x4000, 0x4000,
0x4000, 0x4800, 0x3000, 0x0000, 0x0000}, // C
{0x0000, 0x0000, 0x6000, 0x7000, 0x5800,
0x4800, 0x5800, 0x5000, 0x6000, 0x0000}, // D
{0x0000, 0x7800, 0x4000, 0x4000, 0x7000,
0x4000, 0x4000, 0x7800, 0x0000, 0x0000}, // E
{0x0000, 0x0000, 0x7000, 0x4000, 0x4000,
0x7000, 0x4000, 0x4000, 0x4000, 0x0000}, // F
{0x0000, 0x3800, 0x4000, 0x4000, 0x5800,
0x4800, 0x4800, 0x3800, 0x0000, 0x0000}, // G
{0x0000, 0x0000, 0x4800, 0x4800, 0x4800,
0x7800, 0x4800, 0x4800, 0x4800, 0x0000}, // H
{0x0300, 0x0300, 0x3B00, 0x1000, 0x1000,
0x1200, 0x1300, 0x1300, 0x3B00, 0x0300}, // I
{0x0300, 0x0300, 0x1300, 0x1000, 0x1000,
0x1200, 0x1300, 0x5300, 0x7300, 0x0300}, // J
{0x0300, 0x4F00, 0x5300, 0x6000, 0x6000,
0x7200, 0x5B00, 0x4F00, 0x0300, 0x0300}, // K
{0x0300, 0x0300, 0x4300, 0x4000, 0x4000,
0x4200, 0x4300, 0x4300, 0x7B00, 0x0300}, // L
{0x0300, 0x4F00, 0x5700, 0x7400, 0x5400,
0x5600, 0x4700, 0x4700, 0x0300, 0x0300}, // M
{0x0300, 0x4F00, 0x5700, 0x7400, 0x5400,
0x5600, 0x4700, 0x4700, 0x0300, 0x0300}, // N (M for now)
{0x0300, 0x0300, 0x3300, 0x4800, 0x4800,
0x4600, 0x4B00, 0x4B00, 0x3300, 0x0300}, // O
{0x0300, 0x0300, 0x7300, 0x4800, 0x4800,
0x7A00, 0x4300, 0x4300, 0x4300, 0x0300}, // P
{0x0300, 0x3300, 0x4B00, 0x4800, 0x4800,
0x5A00, 0x5B00, 0x2F00, 0x0300, 0x0300}, // Q
{0x0300, 0x0300, 0x7300, 0x4800, 0x4800,
0x7200, 0x5300, 0x5300, 0x4B00, 0x0300}, // R
{0x0300, 0x0300, 0x7300, 0x4800, 0x4000,
0x3200, 0x0B00, 0x4B00, 0x7300, 0x0300}, // S
{0x0300, 0x0300, 0x7B00, 0x2000, 0x2000,
0x2200, 0x2300, 0x2300, 0x2300, 0x0300}, // T
{0x0300, 0x4B00, 0x4B00, 0x4800, 0x4800,
0x4A00, 0x4B00, 0x7B00, 0x0300, 0x0300}, // U
{0x0300, 0x0300, 0x4700, 0x4800, 0x4800,
0x2A00, 0x2B00, 0x3300, 0x3300, 0x0300}, // V
{0x0300, 0x0300, 0x4700, 0x4400, 0x4400,
0x5A00, 0x7B00, 0x6B00, 0x6B00, 0x0300}, // W
{0x0300, 0x0300, 0x4F00, 0x6800, 0x3000,
0x1200, 0x3300, 0x6B00, 0x4F00, 0x0300}, // X
{0x0300, 0x0300, 0x4F00, 0x6800, 0x3000,
0x3200, 0x1300, 0x1300, 0x1300, 0x0300}, // Y
{0x0300, 0x0300, 0x7300, 0x1000, 0x1000,
0x2200, 0x6300, 0x4300, 0x7B00, 0x0300}, // Z
{0x0300, 0x0300, 0x7300, 0x1000, 0x1000, // (37)
0x7200, 0x1300, 0x1300, 0x7300, 0x0300}, // random matrix code
{0x0300, 0x2B00, 0x2B00, 0x4800, 0x4800, // from here on
0x1200, 0x1300, 0x2300, 0x2300, 0x0300}, // |
{0x0300, 0x4300, 0x6300, 0x4400, 0x0800, // \|/
0x0A00, 0x1300, 0x3300, 0x4300, 0x0300}, // '
{0x0300, 0x7F00, 0x0B00, 0x1800, 0x1000,
0x1200, 0x2300, 0x2300, 0x2300, 0x4300},
{0x0B00, 0x0B00, 0x1300, 0x3000, 0x3000,
0x5200, 0x5300, 0x1300, 0x1300, 0x1300},
{0x2300, 0x2300, 0x7B00, 0x4800, 0x4800,
0x4A00, 0x0B00, 0x1300, 0x1300, 0x2300},
{0x0300, 0x7B00, 0x1300, 0x1000, 0x1000,
0x1200, 0x1300, 0x7B00, 0x0300, 0x0300},
{0x0300, 0x1300, 0x7B00, 0x1000, 0x1000,
0x3200, 0x5300, 0x5300, 0x5300, 0x1300},
{0x0300, 0x2300, 0x7B00, 0x2800, 0x2800,
0x2A00, 0x2B00, 0x4B00, 0x5B00, 0x4300},
{0x2300, 0x1B00, 0x7B00, 0x1000, 0x1400,
0x7E00, 0x9300, 0x1300, 0x1300, 0x1300},
{0x2300, 0x2B00, 0x3B00, 0x4800, 0x4800,
0x4A00, 0x1300, 0x1300, 0x2300, 0x2300},
{0x0300, 0x2300, 0x3F00, 0x4800, 0x4800,
0x5200, 0x1300, 0x1300, 0x1300, 0x2300},
{0x0300, 0x0300, 0x7B00, 0x0800, 0x0800,
0x0A00, 0x0B00, 0x7B00, 0x0B00, 0x0300},
{0x0300, 0x2B00, 0x2B00, 0x7C00, 0x2800,
0x2A00, 0x0B00, 0x1300, 0x1300, 0x2300},
{0x0300, 0x4300, 0x2300, 0x0000, 0x4400,
0x4A00, 0x0B00, 0x1300, 0x3300, 0x6300},
{0x0300, 0x7B00, 0x0B00, 0x1000, 0x1000,
0x1200, 0x2B00, 0x6B00, 0x4300, 0x0300},
{0x0300, 0x2300, 0x2300, 0x2C00, 0x7400,
0x6600, 0x2B00, 0x2B00, 0x2300, 0x3B00},
{0x0300, 0x4B00, 0x4B00, 0x4800, 0x0800,
0x1200, 0x1300, 0x1300, 0x6300, 0x2300},
{0x0000, 0x7800, 0x0800, 0x7800, 0x0800,
0x0800, 0x1000, 0x1000, 0x6000, 0x0000},
{0x0000, 0x7000, 0x0800, 0x3000, 0x3000,
0x2000, 0x2000, 0x2000, 0x4000, 0x0000},
{0x0000, 0x1800, 0x1000, 0x2000, 0x2000,
0x5000, 0x5000, 0x1000, 0x1000, 0x0000},
{0x0000, 0x2000, 0x7800, 0x4800, 0x4800,
0x4800, 0x1000, 0x1000, 0x2000, 0x0000},
{0x0000, 0x0000, 0x7000, 0x2000, 0x2000,
0x2000, 0x2000, 0x7800, 0x0000, 0x0000},
{0x0300, 0x1300, 0x1300, 0x1300, 0x7B00,
0x3300, 0x3300, 0x5300, 0x5300, 0x0300},
{0x0300, 0x2300, 0x2B00, 0x3B00, 0x6B00,
0x2B00, 0x2300, 0x1300, 0x1300, 0x0300},
{0x0300, 0x0300, 0x0300, 0x7300, 0x1300,
0x1300, 0x1300, 0x1300, 0x7B00, 0x0300}, // (63)
};
#endif