0
|
1 ;=============================================================================
|
|
2 ;
|
623
|
3 ; File aa_fonts.asm combined next generation V3.01.1
|
0
|
4 ;
|
|
5 ; Font-data for the anti-aliased word processor
|
|
6 ;
|
|
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
|
|
8 ;=============================================================================
|
|
9 ; HISTORY
|
604
|
10 ; 2010-11-23 : [jDG] Creation for OSTC 1.72, with the original fonts repacked
|
|
11 ; 2010-12-01 : [jDG] Adding 3 bit anti-aliased fonts
|
0
|
12 ;=============================================================================
|
|
13
|
604
|
14
|
623
|
15 #include "configuration.inc"
|
0
|
16
|
|
17
|
623
|
18 ; Attention: all fonts need to be in the same 64 kByte page
|
|
19 fonts_data CODE_PACK 0x10000 ; ex 0x11000
|
|
20
|
|
21 ;============================================================================
|
|
22
|
|
23
|
|
24 ;---- TINY font description and data ----------------------------------------
|
604
|
25 global aa_font16_block
|
0
|
26 aa_font16_block:
|
604
|
27 DB '°', 0x7F ; remap a few ASCII chars, to avoid
|
|
28 DB 'ö', 0x80 ; holes in the character table
|
|
29 DB 'ä', 0x81
|
|
30 DB 'ü', 0x82
|
|
31 DB 'ß', 0x83
|
|
32 DB 'é', 0x84 ; French accents
|
|
33 DB 'è', 0x85
|
|
34 DB 'ê', 0x86
|
|
35 DB 'ç', 0x87
|
|
36 DB 'á', 0x88 ; Spanish accents
|
|
37 DB 'í', 0x89
|
|
38 DB 'ó', 0x8A
|
|
39 DB 'ú', 0x8B
|
|
40 DB 'ñ', 0x8C
|
|
41 DB '¡', 0x8D
|
|
42 DB '¿', 0x8E
|
|
43 DB 0 ; end of translation table
|
|
44 DB aa_font16_firstChar ; to be subtracted
|
|
45 DB aa_font16_chars ; max value
|
|
46 DB '¿'-aa_font16_firstChar ; replace by ¿ when unknown
|
|
47 DB aa_font16_height + 0x80
|
0
|
48 ;
|
604
|
49 #include "../src/Fonts/aa_font16_idx.inc"
|
1
|
50 #include "../src/Fonts/aa_font16.inc"
|
0
|
51 aa_font16_end:
|
604
|
52 ; Attention: make sure this is coherent
|
0
|
53 if aa_font16_nbbits != 3
|
604
|
54 error TINY font should be encoded with 3 bits anti-aliasing!
|
0
|
55 endif
|
|
56
|
|
57 ;---- SMALL font description and data ----------------------------------------
|
604
|
58 global aa_font28_block
|
0
|
59 aa_font28_block:
|
604
|
60 DB '°', 0x7F ; remap a few ASCII chars, to avoid
|
|
61 DB 'ö', 0x80 ; holes in the character table
|
|
62 DB 'ä', 0x81
|
|
63 DB 'ü', 0x82
|
|
64 DB 'ß', 0x83
|
|
65 DB 'é', 0x84 ; French accents
|
|
66 DB 'è', 0x85
|
|
67 DB 'ê', 0x86
|
|
68 DB 'ç', 0x87
|
|
69 DB 'á', 0x88 ; Spanish accents
|
|
70 DB 'í', 0x89
|
|
71 DB 'ó', 0x8A
|
|
72 DB 'ú', 0x8B
|
|
73 DB 'ñ', 0x8C
|
|
74 DB '¡', 0x8D
|
|
75 DB '¿', 0x8E
|
|
76 DB '¤', 0x8F ; unused
|
|
77 ; 90 and 91 contain the logo
|
|
78 DB 0xB7,0x92 ; cursor
|
|
79 DB 0xB8,0x93 ; arrow down
|
|
80 DB 0xB9,0x94 ; arrow up
|
|
81 DB 0 ; end of translation table
|
|
82 DB aa_font28_firstChar ; to be subtracted
|
|
83 DB aa_font28_chars ; max value
|
|
84 DB 0x83-aa_font28_firstChar ; replace by ¤ when unknown
|
|
85 DB aa_font28_height + 0x80
|
0
|
86 ;
|
604
|
87 #include "../src/Fonts/aa_font28_idx.inc"
|
1
|
88 #include "../src/Fonts/aa_font28.inc"
|
0
|
89 aa_font28_end:
|
604
|
90 ; Attention: make sure this is coherent...
|
0
|
91 if aa_font28_nbbits != 3
|
604
|
92 error SMALL font should be encoded with 3 bits anti-aliasing!
|
0
|
93 endif
|
|
94
|
|
95 ;---- STD font description and data ------------------------------------------
|
623
|
96 global aa_font34_block
|
|
97 aa_font34_block:
|
604
|
98 DB '°', 0x7F ; remap a few ASCII chars, to avoid
|
|
99 DB 'ö', 0x80 ; holes in the character table
|
|
100 DB 'ä', 0x81
|
|
101 DB 'ü', 0x82
|
|
102 DB 'ß', 0x83
|
|
103 DB 'é', 0x84 ; French accents
|
|
104 DB 'è', 0x85
|
|
105 DB 'ê', 0x86
|
|
106 DB 'ç', 0x87
|
|
107 DB 'à', 0x88 ; Spanish accents
|
|
108 DB 'á', 0x89
|
|
109 DB 'í', 0x8A
|
|
110 DB 'ó', 0x8B
|
|
111 DB 'ú', 0x8C
|
|
112 DB 'ñ', 0x8D
|
|
113 DB '¡', 0x8E
|
|
114 DB '¿', 0x8F
|
623
|
115 ; 90, 91 contain the logo
|
604
|
116 DB 0xB7,0x92 ; cursor
|
|
117 ; 93 is down arrow (dive start)
|
|
118 ; 94 is up arrow (dive end)
|
|
119 ; 95 is left-right arrow (dive duration)
|
|
120 DB '¤', 0x96 ; unused
|
|
121 DB 0 ; end of translation table
|
|
122 DB aa_font34_firstChar ; to be subtracted
|
|
123 DB aa_font34_chars ; max value
|
623
|
124 DB 0x87-aa_font34_firstChar ; replace by ¤ when unknown
|
604
|
125 DB aa_font34_height + 0x80
|
0
|
126 ;
|
604
|
127 #include "../src/Fonts/aa_font34_idx.inc"
|
1
|
128 #include "../src/Fonts/aa_font34.inc"
|
0
|
129 aa_font36_end:
|
604
|
130 ; Attention: make sure this is coherent...
|
0
|
131 if aa_font34_nbbits != 3
|
604
|
132 error STANDARD font should be encoded with 3 bits anti-aliasing!
|
0
|
133 endif
|
|
134
|
|
135 ;---- MEDIUM font description and data ---------------------------------------
|
604
|
136 global aa_font48_block
|
0
|
137 aa_font48_block:
|
604
|
138 DB 0x27, 0x3B ; ' char
|
|
139 DB '"', 0x3C
|
|
140 DB 'm', 0x3D
|
|
141 DB 'f', 0x3E
|
|
142 DB ' ', 0x3F
|
|
143 DB 0
|
|
144 DB aa_font48_firstChar
|
|
145 DB aa_font48_chars
|
|
146 DB 0x3E-aa_font48_firstChar
|
|
147 DB aa_font48_height + 0x80 ; AA flag
|
0
|
148 ;
|
1
|
149 #include "../src/Fonts/aa_font48_idx.inc"
|
|
150 #include "../src/Fonts/aa_font48.inc"
|
0
|
151 aa_font48_end:
|
604
|
152 ; Attention: make sure this is coherent...
|
0
|
153 if aa_font48_nbbits != 3
|
604
|
154 error MEDIUM font should be encoded with 3 bits anti-aliasing!
|
0
|
155 endif
|
|
156
|
|
157 ;---- LARGE font description and data ----------------------------------------
|
604
|
158 global aa_font90_block
|
0
|
159 aa_font90_block:
|
604
|
160 DB ' ', 0x2F
|
|
161 DB 0
|
|
162 DB aa_font90_firstChar
|
|
163 DB aa_font90_chars
|
|
164 DB 0x2F-aa_font90_firstChar
|
|
165 DB aa_font90_height + 0x80 ; AA flag
|
0
|
166 ;
|
1
|
167 #include "../src/Fonts/aa_font90_idx.inc"
|
|
168 #include "../src/Fonts/aa_font90.inc"
|
0
|
169 aa_font90_end:
|
604
|
170 ; Attention: make sure this is coherent...
|
0
|
171 if aa_font90_nbbits != 3
|
604
|
172 error SMALL font should be encoded with 3 bits anti-aliasing!
|
0
|
173 endif
|
|
174
|
623
|
175 ;---- HUGE font description and data ----------------------------------------
|
|
176 IFDEF _huge_font
|
|
177
|
|
178 global aa_font92_block
|
|
179 aa_font92_block:
|
|
180 DB ' ', 0x2F
|
|
181 DB 0
|
|
182 DB aa_font92_firstChar
|
|
183 DB aa_font92_chars
|
|
184 DB 0x2F-aa_font92_firstChar
|
|
185 DB aa_font92_height + 0x80 ; AA flag
|
|
186 ;
|
|
187 #include "../src/Fonts/aa_font92_idx.inc"
|
|
188 #include "../src/Fonts/aa_font92.inc"
|
|
189 aa_font92_end:
|
|
190 ; Make sure this is coherent...
|
|
191 if aa_font92_nbbits != 3
|
|
192 error SMALL font should be encoded with 3bits anti-aliasing...
|
|
193 endif
|
|
194
|
|
195 ENDIF
|
|
196
|
0
|
197 ;=============================================================================
|
604
|
198 END |