Mercurial > public > hwos_code
comparison src/aa_fonts.asm @ 634:4050675965ea
3.10 stable release
author | heinrichsweikamp |
---|---|
date | Tue, 28 Apr 2020 17:34:31 +0200 |
parents | 185ba2f91f59 |
children | 75e90cd0c2c3 |
comparison
equal
deleted
inserted
replaced
633:690c48db7b5b | 634:4050675965ea |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File aa_fonts.asm combined next generation V3.08.3 | 3 ; File aa_fonts.asm * combined next generation V3.08.4f |
4 ; | 4 ; |
5 ; Font-data for the anti-aliased word processor | 5 ; Font-data for the anti-aliased word processor |
6 ; | 6 ; |
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
8 ;============================================================================= | 8 ;============================================================================= |
12 ;============================================================================= | 12 ;============================================================================= |
13 | 13 |
14 | 14 |
15 #include "configuration.inc" | 15 #include "configuration.inc" |
16 | 16 |
17 | |
18 ; Attention: all fonts need to be in the same 64 kByte page | 17 ; Attention: all fonts need to be in the same 64 kByte page |
18 ;============================================================================ | |
19 fonts_data CODE_PACK 0x10000 ; ex 0x11000 | 19 fonts_data CODE_PACK 0x10000 ; ex 0x11000 |
20 | |
21 ;============================================================================ | 20 ;============================================================================ |
22 | 21 |
23 | 22 |
24 ;---- TINY font description and data ---------------------------------------- | 23 ;---- TINY font description and data ---------------------------------------- |
24 ; | |
25 global aa_font16_block | 25 global aa_font16_block |
26 aa_font16_block: | 26 aa_font16_block: |
27 DB '°', 0x7F ; remap a few ASCII chars, to avoid | 27 DB '°', 0x7F ; remap a few ASCII chars, to avoid |
28 DB 'ö', 0x80 ; holes in the character table | 28 DB 'ö', 0x80 ; holes in the character table |
29 DB 'ä', 0x81 | 29 DB 'ä', 0x81 |
39 DB 'ú', 0x8B | 39 DB 'ú', 0x8B |
40 DB 'ñ', 0x8C | 40 DB 'ñ', 0x8C |
41 DB '¡', 0x8D | 41 DB '¡', 0x8D |
42 DB '¿', 0x8E | 42 DB '¿', 0x8E |
43 DB 0 ; end of translation table | 43 DB 0 ; end of translation table |
44 DB aa_font16_firstChar ; to be subtracted | 44 DB aa_font16_firstChar ; code of first char in font set |
45 DB aa_font16_chars ; max value | 45 DB aa_font16_chars ; number of chars in font set |
46 DB '¿'-aa_font16_firstChar ; replace by ¿ when unknown | 46 DB '¿'-aa_font16_firstChar ; default char |
47 DB aa_font16_height + 0x80 | 47 DB aa_font16_height + 0x80 ; font hight and AA flag |
48 ; | 48 ; |
49 #include "../src/Fonts/aa_font16_idx.inc" | 49 #include "../src/Fonts/aa_font16_idx.inc" |
50 #include "../src/Fonts/aa_font16.inc" | 50 #include "../src/Fonts/aa_font16.inc" |
51 aa_font16_end: | 51 aa_font16_end: |
52 ; Attention: make sure this is coherent | 52 ; Attention: make sure this is coherent |
53 if aa_font16_nbbits != 3 | 53 if aa_font16_nbbits != 3 |
54 error TINY font should be encoded with 3 bits anti-aliasing! | 54 error TINY font should be encoded with 3 bits anti-aliasing! |
55 endif | 55 endif |
56 | 56 |
57 | |
57 ;---- SMALL font description and data ---------------------------------------- | 58 ;---- SMALL font description and data ---------------------------------------- |
59 ; | |
58 global aa_font28_block | 60 global aa_font28_block |
59 aa_font28_block: | 61 aa_font28_block: |
60 DB '°', 0x7F ; remap a few ASCII chars, to avoid | 62 DB '°', 0x7F ; remap a few ASCII chars, to avoid |
61 DB 'ö', 0x80 ; holes in the character table | 63 DB 'ö', 0x80 ; holes in the character table |
62 DB 'ä', 0x81 | 64 DB 'ä', 0x81 |
77 ; 90 and 91 contain the logo | 79 ; 90 and 91 contain the logo |
78 DB 0xB7,0x92 ; cursor | 80 DB 0xB7,0x92 ; cursor |
79 DB 0xB8,0x93 ; arrow down | 81 DB 0xB8,0x93 ; arrow down |
80 DB 0xB9,0x94 ; arrow up | 82 DB 0xB9,0x94 ; arrow up |
81 DB 0 ; end of translation table | 83 DB 0 ; end of translation table |
82 DB aa_font28_firstChar ; to be subtracted | 84 DB aa_font28_firstChar ; code of first char in font set |
83 DB aa_font28_chars ; max value | 85 DB aa_font28_chars ; number of chars in font set |
84 DB 0x83-aa_font28_firstChar ; replace by ¤ when unknown | 86 DB 0x83-aa_font28_firstChar ; default char |
85 DB aa_font28_height + 0x80 | 87 DB aa_font28_height + 0x80 ; font hight and AA flag |
86 ; | 88 ; |
87 #include "../src/Fonts/aa_font28_idx.inc" | 89 #include "../src/Fonts/aa_font28_idx.inc" |
88 #include "../src/Fonts/aa_font28.inc" | 90 #include "../src/Fonts/aa_font28.inc" |
89 aa_font28_end: | 91 aa_font28_end: |
90 ; Attention: make sure this is coherent... | 92 ; Attention: make sure this is coherent: |
91 if aa_font28_nbbits != 3 | 93 if aa_font28_nbbits != 3 |
92 error SMALL font should be encoded with 3 bits anti-aliasing! | 94 error SMALL font should be encoded with 3 bits anti-aliasing! |
93 endif | 95 endif |
94 | 96 |
97 | |
95 ;---- STD font description and data ------------------------------------------ | 98 ;---- STD font description and data ------------------------------------------ |
99 ; | |
96 global aa_font34_block | 100 global aa_font34_block |
97 aa_font34_block: | 101 aa_font34_block: |
98 DB '°', 0x7F ; remap a few ASCII chars, to avoid | 102 DB '°', 0x7F ; remap a few ASCII chars, to avoid |
99 DB 'ö', 0x80 ; holes in the character table | 103 DB 'ö', 0x80 ; holes in the character table |
100 DB 'ä', 0x81 | 104 DB 'ä', 0x81 |
117 ; 93 is down arrow (dive start) | 121 ; 93 is down arrow (dive start) |
118 ; 94 is up arrow (dive end) | 122 ; 94 is up arrow (dive end) |
119 ; 95 is left-right arrow (dive duration) | 123 ; 95 is left-right arrow (dive duration) |
120 DB '¤', 0x96 ; unused | 124 DB '¤', 0x96 ; unused |
121 DB 0 ; end of translation table | 125 DB 0 ; end of translation table |
122 DB aa_font34_firstChar ; to be subtracted | 126 DB aa_font34_firstChar ; code of first char in font set |
123 DB aa_font34_chars ; max value | 127 DB aa_font34_chars ; number of chars in font set |
124 DB 0x87-aa_font34_firstChar ; replace by ¤ when unknown | 128 DB 0x87-aa_font34_firstChar ; default char |
125 DB aa_font34_height + 0x80 | 129 DB aa_font34_height + 0x80 ; font hight and AA flag |
126 ; | 130 ; |
127 #include "../src/Fonts/aa_font34_idx.inc" | 131 #include "../src/Fonts/aa_font34_idx.inc" |
128 #include "../src/Fonts/aa_font34.inc" | 132 #include "../src/Fonts/aa_font34.inc" |
129 aa_font36_end: | 133 aa_font36_end: |
130 ; Attention: make sure this is coherent... | 134 ; Attention: make sure this is coherent: |
131 if aa_font34_nbbits != 3 | 135 if aa_font34_nbbits != 3 |
132 error STANDARD font should be encoded with 3 bits anti-aliasing! | 136 error STANDARD font should be encoded with 3 bits anti-aliasing! |
133 endif | 137 endif |
134 | 138 |
139 | |
135 ;---- MEDIUM font description and data --------------------------------------- | 140 ;---- MEDIUM font description and data --------------------------------------- |
141 ; | |
136 global aa_font48_block | 142 global aa_font48_block |
137 aa_font48_block: | 143 aa_font48_block: |
138 DB ' ', 0x3F ; space, full-width | 144 DB ' ', 0x3F ; space, full-width |
139 ; DB ',', 0x2C ; space, half-width, on position of ',' | 145 ; DB ',', 0x2C ; space, half-width, on position of ',' |
140 ; DB '-', 0x2D ; minus, half-width, on position of '-' | 146 ; DB '-', 0x2D ; minus, half-width, on position of '-' |
142 DB 0x27, 0x3B ; ' half-width | 148 DB 0x27, 0x3B ; ' half-width |
143 DB '"', 0x3C ; " | 149 DB '"', 0x3C ; " |
144 DB 'm', 0x3D ; m | 150 DB 'm', 0x3D ; m |
145 DB 'f', 0x3E ; ft-ligature | 151 DB 'f', 0x3E ; ft-ligature |
146 DB 0 ; end of translation table | 152 DB 0 ; end of translation table |
147 DB aa_font48_firstChar ; to be subtracted | 153 DB aa_font48_firstChar ; code of first char in font set |
148 DB aa_font48_chars ; max value | 154 DB aa_font48_chars ; number of chars in font set |
149 DB 0x3F-aa_font48_firstChar ; replace by space when unknown | 155 DB 0x3F-aa_font48_firstChar ; default char |
150 DB aa_font48_height + 0x80 ; AA flag | 156 DB aa_font48_height + 0x80 ; font hight and AA flag |
151 ; | 157 ; |
152 #include "../src/Fonts/aa_font48_idx.inc" | 158 #include "../src/Fonts/aa_font48_idx.inc" |
153 #include "../src/Fonts/aa_font48.inc" | 159 #include "../src/Fonts/aa_font48.inc" |
154 aa_font48_end: | 160 aa_font48_end: |
155 ; Attention: make sure this is coherent... | 161 ; Attention: make sure this is coherent: |
156 if aa_font48_nbbits != 3 | 162 if aa_font48_nbbits != 3 |
157 error MEDIUM font should be encoded with 3 bits anti-aliasing! | 163 error MEDIUM font should be encoded with 3 bits anti-aliasing! |
158 endif | 164 endif |
159 | 165 |
166 | |
160 ;---- LARGE font description and data ---------------------------------------- | 167 ;---- LARGE font description and data ---------------------------------------- |
168 ; | |
161 global aa_font90_block | 169 global aa_font90_block |
162 aa_font90_block: | 170 aa_font90_block: |
163 DB ' ', 0x2F | 171 DB ' ', 0x2F ; space |
164 DB 0 | 172 DB 0 ; end of translation table |
165 DB aa_font90_firstChar | 173 DB aa_font90_firstChar ; code of first char in font set |
166 DB aa_font90_chars | 174 DB aa_font90_chars ; number of chars in font set |
167 DB 0x2F-aa_font90_firstChar | 175 DB 0x2F-aa_font90_firstChar ; default char |
168 DB aa_font90_height + 0x80 ; AA flag | 176 DB aa_font90_height + 0x80 ; font hight and AA flag |
169 ; | 177 ; |
170 #include "../src/Fonts/aa_font90_idx.inc" | 178 #include "../src/Fonts/aa_font90_idx.inc" |
171 #include "../src/Fonts/aa_font90.inc" | 179 #include "../src/Fonts/aa_font90.inc" |
172 aa_font90_end: | 180 aa_font90_end: |
173 ; Attention: make sure this is coherent... | 181 ; Attention: make sure this is coherent: |
174 if aa_font90_nbbits != 3 | 182 if aa_font90_nbbits != 3 |
175 error SMALL font should be encoded with 3 bits anti-aliasing! | 183 error SMALL font should be encoded with 3 bits anti-aliasing! |
176 endif | 184 endif |
177 | 185 |
186 | |
178 ;---- HUGE font description and data ---------------------------------------- | 187 ;---- HUGE font description and data ---------------------------------------- |
188 ; | |
179 global aa_font92_block | 189 global aa_font92_block |
180 aa_font92_block: | 190 aa_font92_block: |
181 DB ' ', 0x2F | 191 DB ' ', 0x2F ; space |
182 DB 0 | 192 DB 0 ; end of translation table |
183 DB aa_font92_firstChar | 193 DB aa_font92_firstChar ; code of first char in font set |
184 DB aa_font92_chars | 194 DB aa_font92_chars ; number of chars in font set |
185 DB 0x2F-aa_font92_firstChar | 195 DB 0x2F-aa_font92_firstChar ; default char |
186 DB aa_font92_height + 0x80 ; AA flag | 196 DB aa_font92_height + 0x80 ; AA flag |
187 ; | 197 ; |
188 #include "../src/Fonts/aa_font92_idx.inc" | 198 #include "../src/Fonts/aa_font92_idx.inc" |
189 #include "../src/Fonts/aa_font92.inc" | 199 #include "../src/Fonts/aa_font92.inc" |
190 aa_font92_end: | 200 aa_font92_end: |
191 ; Make sure this is coherent... | 201 ; Attention: make sure this is coherent: |
192 if aa_font92_nbbits != 3 | 202 if aa_font92_nbbits != 3 |
193 error SMALL font should be encoded with 3bits anti-aliasing... | 203 error SMALL font should be encoded with 3bits anti-aliasing... |
194 endif | 204 endif |
195 | 205 |
196 ;============================================================================= | 206 ;----------------------------------------------------------------------------- |
207 | |
197 END | 208 END |