Mercurial > public > mk2
annotate code_part1/OSTC_code_asm_part1/aa_fonts.asm @ 441:4826dd98514b
NEW: Decoplanner OC volumes in liters (or bars), up to 65000.
author | JeanDo |
---|---|
date | Tue, 09 Aug 2011 18:30:19 +0200 |
parents | 8147c35da3ca |
children | 6e57b5bb98ce |
rev | line source |
---|---|
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
1 ;============================================================================= |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
2 ; |
95 | 3 ; File aa_fonts.asm |
4 ; | |
5 ; Font-data for the anti-aliased word processor | |
6 ; | |
7 ; This program is free software: you can redistribute it and/or modify | |
8 ; it under the terms of the GNU General Public License as published by | |
9 ; the Free Software Foundation, either version 3 of the License, or | |
10 ; (at your option) any later version. | |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
11 ; |
95 | 12 ; This program is distributed in the hope that it will be useful, |
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 ; GNU General Public License for more details. | |
16 ; | |
17 ; You should have received a copy of the GNU General Public License | |
18 ; along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 ; | |
20 ; Copyright (c) 2010, JD Gascuel. | |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
21 ;============================================================================= |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
22 ; HISTORY |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
23 ; 2010-11-23 : [jDG] Creation with the original 1.72 fonts repacked. |
95 | 24 ; 2010-12-01 : [jDG] Adding 3bits antialiased fonts. |
25 ;============================================================================= | |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
26 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
27 ; Original fonts where byte swapped in PROM memory, but the repacked don't... |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
28 ; AA_BYTE_SWAP EQU 1 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
29 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
30 ;---- SMALL font description and data ---------------------------------------- |
116 | 31 aa_fonts code_pack |
424 | 32 #ifndef RUSSIAN |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
33 aa_font28_block: |
178
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
34 DB '°', 0x7F ; Remap a few ASCII chars, to avoid |
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
35 DB 'ö', 0x80 ; holes in the character table... |
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
36 DB 'ä', 0x81 |
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
37 DB 'ü', 0x82 |
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
38 DB 'ß', 0x83 |
183 | 39 DB 'é', 0x84 ; French accents |
178
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
40 DB 'è', 0x85 |
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
41 DB 'ê', 0x86 |
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
42 DB 'ç', 0x87 |
183 | 43 DB 'á', 0x88 ; Spanish accents |
44 DB 'í', 0x89 | |
45 DB 'ó', 0x8A | |
46 DB 'ú', 0x8B | |
47 DB 'ñ', 0x8C | |
48 DB '¡', 0x8D | |
49 DB '¿', 0x8E | |
50 DB '¤', 0x8F ; Unused | |
51 ; 90, 91 are the logo. | |
178
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
52 DB 0xB7,0x92 ; Cursor |
29ff788487fc
Added German ???? & French ???? characters in small font.
JeanDo
parents:
116
diff
changeset
|
53 DB 0xB8,0x93 ; Dimmed cursor. |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
54 DB 0 ; End of translation table |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
55 DB aa_font28_firstChar ; To be substracted |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
56 DB aa_font28_chars ; Max value |
95 | 57 DB 0x83-aa_font28_firstChar; replace by ¤ when unknown. |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
58 DB aa_font28_height + 0x80 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
59 ; |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
60 #include "aa_font28_idx.inc" ; SHOULD FOLLOW ! |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
61 #include "aa_font28.inc" |
95 | 62 aa_font28_end: |
424 | 63 #else |
64 aa_font28_block: | |
65 DB 0xC0, 0x41 | |
66 DB 0xC2, 0x42 | |
67 DB 0xD1, 0x43 | |
68 DB 0xC5, 0x45 | |
69 DB 0xCD, 0x48 | |
70 DB 0xCA, 0x4B | |
71 DB 0xCC, 0x4D | |
72 DB 0xCE, 0x4F | |
73 DB 0xD0, 0x50 | |
74 DB 0xD2, 0x54 | |
75 DB 0xD5, 0x58 | |
76 DB 0xE0, 0x61 | |
77 DB 0xF1, 0x63 | |
78 DB 0xE5, 0x65 | |
79 DB 0xEE, 0x6F | |
80 DB 0xF0, 0x70 | |
81 DB 0xF5, 0x78 | |
82 DB 0xF3, 0x79 | |
83 DB 0xB7, 0x92 | |
84 DB 0xB8, 0x93 | |
85 DB 0xBA, 0x7F | |
86 DB 0xC1, 0x80 | |
87 DB 0xC3, 0x81 | |
88 DB 0xC4, 0x82 | |
89 DB 0xC6, 0x83 | |
90 DB 0xC7, 0x84 | |
91 DB 0xC8, 0x85 | |
92 DB 0xC9, 0x86 | |
93 DB 0xCB, 0x87 | |
94 DB 0xCF, 0x88 | |
95 DB 0xD3, 0x89 | |
96 DB 0xD4, 0x8A | |
97 DB 0xD6, 0x8B | |
98 DB 0xD7, 0x8C | |
99 DB 0xD8, 0x8D | |
100 DB 0xD9, 0x8E | |
101 DB 0xDA, 0x8F | |
102 DB 0xDB, 0x94 | |
103 DB 0xDC, 0x95 | |
104 DB 0xDD, 0x96 | |
105 DB 0xDE, 0x97 | |
106 DB 0xDF, 0x98 | |
107 DB 0xE1, 0x99 | |
108 DB 0xE2, 0x9A | |
109 DB 0xE3, 0x9B | |
110 DB 0xE4, 0x9C | |
111 DB 0xE6, 0x9D | |
112 DB 0xE7, 0x9E | |
113 DB 0xE8, 0x9F | |
114 DB 0xE9, 0xA0 | |
115 DB 0xEA, 0xA1 | |
116 DB 0xEB, 0xA2 | |
117 DB 0xEC, 0xA3 | |
118 DB 0xED, 0xA5 | |
119 DB 0xEF, 0xA6 | |
120 DB 0xF2, 0xA7 | |
121 DB 0xF4, 0xA8 | |
122 DB 0xF6, 0xA9 | |
123 DB 0xF7, 0xAA | |
124 DB 0xF8, 0xAB | |
125 DB 0xF9, 0xAC | |
126 DB 0xFA, 0xAD | |
127 DB 0xFB, 0xAF | |
128 DB 0xFC, 0xB1 | |
129 DB 0xFD, 0xB2 | |
130 DB 0xFE, 0xB3 | |
131 DB 0xFF, 0xB4 | |
132 DB 0 ; End of translation table | |
133 DB aa_font28_firstChar ; To be substracted | |
134 DB aa_font28_chars ; Max value | |
135 DB 0xA4-aa_font28_firstChar ; replace by ä when unknown. | |
136 DB aa_font28_height + 0x80 | |
137 ; | |
138 #include "aa_font28_idx_rus.inc" ; SHOULD FOLLOW ! | |
139 #include "aa_font28_rus.inc" | |
140 aa_font28_end: | |
141 #endif | |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
142 ; Make sure this is coherent... |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
143 if aa_font28_nbbits != 3 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
144 error SMALL fount should be encoded with anti-aliasing... |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
145 endif |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
146 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
147 ;---- MEDIUM font description and data --------------------------------------- |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
148 aa_font48_block: |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
149 DB 0x27, 0x3B ; ' char |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
150 DB '"', 0x3C |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
151 DB 'm', 0x3D |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
152 DB ' ', 0x3E |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
153 DB 0 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
154 DB aa_font48_firstChar |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
155 DB aa_font48_chars |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
156 DB 0x3E-aa_font48_firstChar |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
157 DB aa_font48_height + 0x80 ; AA flag. |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
158 ; |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
159 #include "aa_font48_idx.inc" |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
160 #include "aa_font48.inc" |
95 | 161 aa_font48_end: |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
162 ; Make sure this is coherent... |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
163 if aa_font48_nbbits != 3 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
164 error MEDIUM fount should be encoded with 3bits anti-aliasing... |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
165 endif |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
166 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
167 ;---- LARGE font description and data ---------------------------------------- |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
168 aa_font90_block: |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
169 DB ' ', 0x2F |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
170 DB 0 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
171 DB aa_font90_firstChar |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
172 DB aa_font90_chars |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
173 DB 0x2F-aa_font90_firstChar |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
174 DB aa_font90_height + 0x80 ; AA flag. |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
175 ; |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
176 #include "aa_font90_idx.inc" |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
177 #include "aa_font90.inc" |
95 | 178 aa_font90_end: |
83
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
179 ; Make sure this is coherent... |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
180 if aa_font90_nbbits != 3 |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
181 error SMALL fount should be encoded with 3bits anti-aliasing... |
3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
heinrichsweikamp
parents:
diff
changeset
|
182 endif |
95 | 183 |
184 ;============================================================================= |