📄 fonts.lst
字号:
ARM COMPILER V2.42, fonts 27/03/06 10:45:52 PAGE 1
ARM COMPILER V2.42, COMPILATION OF MODULE fonts
OBJECT MODULE PLACED IN .\obj\fonts.obj
COMPILER INVOKED BY: C:\Keil\ARM\BIN\CA.exe src\fonts.c THUMB DEBUG PRINT(.\LST\FONTS.LST) TABS(4) OBJECT(.\obj\fonts.ob
-j)
stmt level source
1 /***************************************************************************
2 * *
3 * FILE: FONTS.C *
4 * LCD Display Controller font set. Supports five fonts that are *
5 * defined in bit map tables in this source file. The font tables in *
6 * this file were derived from a conversion program called FontGen *
7 * by Bahri Okuroglu - bahrio@yahoo.com. *
8 * *
9 * Copyright (C) 2003 by Carousel Design Solutions *
10 * Michael J. Karas, Carousel Design Solutions, 4217 Grimes Ave South *
11 * Edina MN 55416, (952) 929-7537 *
12 * *
13 * found on 8502.com (should be free but copyrighted) *
14 * modified for the ARM7-glcd-Demo-Project by M. Thomas *
15 * "very large" font-set for large numbers (FONT_MT!) by M. Tho *
16 ***************************************************************************/
17
18 // #include <stdarg.h>
19 #include "types.h"
20 #include "fonts.h"
21
22 #ifndef NULL
23 #define NULL 0
24 #endif
25
26 /* definition tables for fonts as follows: */
27 /* all fonts include 96 glyphs from 0x20 to 0x7F that are in ASCII order */
28
29 const struct FONT_DEF fonts[FONT_COUNT] =
30 {
31 #ifdef EN_FIVE_DOT
32 {1, 7, five_dot_glyph_table, 0, five_dot_width_table,' ','~','.'},
33 #endif
34
35 #ifdef EN_SIX_DOT
36 {2, 8, six_dot_glyph_table, 0, six_dot_width_table,' ','~','.'},
37 #endif
38
39 #ifdef EN_SEVEN_DOT
40 {2, 8, seven_dot_glyph_table, 0, seven_dot_width_table,' ',DEG_CHAR,'.'},
41 #endif
42
43 #ifdef EN_NINE_DOT
44 {1, 12, nine_dot_glyph_table, 8, NULL,' ','~','.'},
45 #endif
46
47 #ifdef EN_TEN_DOT
48 {2, 12, ten_dot_glyph_table, 9, NULL,' ','~','.'},
49 #endif
50
51 #ifdef EN_FIFTEEN_DOT
52 {3, 18, fifteen_dot_glyph_table, 0, fifteen_dot_width_table,' ','~','.'},
53 #endif
54
55 /* ':' added mth */
56 #ifdef EN_EIGHTEEN_DOT
57 {3, 18, eighteen_dot_glyph_table, 0, eighteen_dot_width_table,' ',':','.'},
58 #endif
ARM COMPILER V2.42, fonts 27/03/06 10:45:52 PAGE 2
59
60 /* large Numbers added mth */
61 #ifdef EN_FONT_MT1
62 {4, 40, font_mt1_glyph_table, 0, font_mt1_width_table,'0',':',':'},
63 #endif
64
65 };
66
67
68 #ifdef EN_FIVE_DOT
69 const uint8_t five_dot_glyph_table[] = {
70 /* ' ' charwidth: 2 */
71 0x00, /* [ ] */
72 0x00, /* [ ] */
73 0x00, /* [ ] */
74 0x00, /* [ ] */
75 0x00, /* [ ] */
76 0x00, /* [ ] */
77 0x00, /* [ ] */
78
79 /* '!' charwidth: 2 */
80 0x00, /* [ ] */
81 0x80, /* [* ] */
82 0x80, /* [* ] */
83 0x80, /* [* ] */
84 0x00, /* [ ] */
85 0x80, /* [* ] */
86 0x00, /* [ ] */
87
88 /* '"' charwidth: 4 */
89 0x00, /* [ ] */
90 0xA0, /* [* * ] */
91 0xA0, /* [* * ] */
92 0x00, /* [ ] */
93 0x00, /* [ ] */
94 0x00, /* [ ] */
95 0x00, /* [ ] */
96
97 /* '#' charwidth: 8 */
98 0x00, /* [ ] */
99 0x14, /* [ * * ] */
100 0x7E, /* [ ****** ] */
101 0x28, /* [ * * ] */
102 0xFC, /* [****** ] */
103 0x50, /* [ * * ] */
104 0x00, /* [ ] */
105
106 /* '$' charwidth: 4 */
107 0x40, /* [ * ] */
108 0x60, /* [ ** ] */
109 0x80, /* [* ] */
110 0x40, /* [ * ] */
111 0x20, /* [ * ] */
112 0xC0, /* [** ] */
113 0x40, /* [ * ] */
114
115 /* '%' charwidth: 8 */
116 0x00, /* [ ] */
117 0x64, /* [ ** * ] */
118 0xA8, /* [* * * ] */
119 0xD6, /* [** * ** ] */
120 0x2A, /* [ * * * ] */
121 0x4C, /* [ * ** ] */
122 0x00, /* [ ] */
123
124 /* '&' charwidth: 6 */
ARM COMPILER V2.42, fonts 27/03/06 10:45:52 PAGE 3
125 0x00, /* [ ] */
126 0x60, /* [ ** ] */
127 0x90, /* [* * ] */
128 0x40, /* [ * ] */
129 0x98, /* [* ** ] */
130 0x60, /* [ ** ] */
131 0x00, /* [ ] */
132
133 /* ''' charwidth: 2 */
134 0x00, /* [ ] */
135 0x80, /* [* ] */
136 0x80, /* [* ] */
137 0x00, /* [ ] */
138 0x00, /* [ ] */
139 0x00, /* [ ] */
140 0x00, /* [ ] */
141
142 /* '(' charwidth: 3 */
143 0x40, /* [ * ] */
144 0x80, /* [* ] */
145 0x80, /* [* ] */
146 0x80, /* [* ] */
147 0x80, /* [* ] */
148 0x80, /* [* ] */
149 0x40, /* [ * ] */
150
151 /* ')' charwidth: 3 */
152 0x80, /* [* ] */
153 0x40, /* [ * ] */
154 0x40, /* [ * ] */
155 0x40, /* [ * ] */
156 0x40, /* [ * ] */
157 0x40, /* [ * ] */
158 0x80, /* [* ] */
159
160 /* '*' charwidth: 6 */
161 0x00, /* [ ] */
162 0x50, /* [ * * ] */
163 0x20, /* [ * ] */
164 0xF8, /* [***** ] */
165 0x20, /* [ * ] */
166 0x50, /* [ * * ] */
167 0x00, /* [ ] */
168
169 /* '+' charwidth: 6 */
170 0x00, /* [ ] */
171 0x20, /* [ * ] */
172 0x20, /* [ * ] */
173 0xF8, /* [***** ] */
174 0x20, /* [ * ] */
175 0x20, /* [ * ] */
176 0x00, /* [ ] */
177
178 /* ',' charwidth: 3 */
179 0x00, /* [ ] */
180 0x00, /* [ ] */
181 0x00, /* [ ] */
182 0x00, /* [ ] */
183 0x40, /* [ * ] */
184 0x40, /* [ * ] */
185 0x80, /* [* ] */
186
187 /* '-' charwidth: 4 */
188 0x00, /* [ ] */
189 0x00, /* [ ] */
190 0x00, /* [ ] */
ARM COMPILER V2.42, fonts 27/03/06 10:45:52 PAGE 4
191 0xE0, /* [*** ] */
192 0x00, /* [ ] */
193 0x00, /* [ ] */
194 0x00, /* [ ] */
195
196 /* '.' charwidth: 2 */
197 0x00, /* [ ] */
198 0x00, /* [ ] */
199 0x00, /* [ ] */
200 0x00, /* [ ] */
201 0x00, /* [ ] */
202 0x80, /* [* ] */
203 0x00, /* [ ] */
204
205 /* '/' charwidth: 4 */
206 0x20, /* [ * ] */
207 0x20, /* [ * ] */
208 0x40, /* [ * ] */
209 0x40, /* [ * ] */
210 0x80, /* [* ] */
211 0x80, /* [* ] */
212 0x00, /* [ ] */
213
214 /* '0' charwidth: 5 */
215 0x00, /* [ ] */
216 0x60, /* [ ** ] */
217 0x90, /* [* * ] */
218 0x90, /* [* * ] */
219 0x90, /* [* * ] */
220 0x60, /* [ ** ] */
221 0x00, /* [ ] */
222
223 /* '1' charwidth: 3 */
224 0x00, /* [ ] */
225 0x40, /* [ * ] */
226 0xC0, /* [** ] */
227 0x40, /* [ * ] */
228 0x40, /* [ * ] */
229 0x40, /* [ * ] */
230 0x00, /* [ ] */
231
232 /* '2' charwidth: 5 */
233 0x00, /* [ ] */
234 0x60, /* [ ** ] */
235 0x90, /* [* * ] */
236 0x20, /* [ * ] */
237 0x40, /* [ * ] */
238 0xF0, /* [**** ] */
239 0x00, /* [ ] */
240
241 /* '3' charwidth: 5 */
242 0x00, /* [ ] */
243 0x60, /* [ ** ] */
244 0x90, /* [* * ] */
245 0x20, /* [ * ] */
246 0x90, /* [* * ] */
247 0x60, /* [ ** ] */
248 0x00, /* [ ] */
249
250 /* '4' charwidth: 5 */
251 0x00, /* [ ] */
252 0x20, /* [ * ] */
253 0x60, /* [ ** ] */
254 0xA0, /* [* * ] */
255 0xF0, /* [**** ] */
256 0x20, /* [ * ] */
ARM COMPILER V2.42, fonts 27/03/06 10:45:52 PAGE 5
257 0x00, /* [ ] */
258
259 /* '5' charwidth: 4 */
260 0x00, /* [ ] */
261 0xE0, /* [*** ] */
262 0x80, /* [* ] */
263 0xE0, /* [*** ] */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -