Mercurial > public > hwos_code
comparison src/aa_fonts.asm @ 623:c40025d8e750
3.03 beta released
author | heinrichsweikamp |
---|---|
date | Mon, 03 Jun 2019 14:01:48 +0200 |
parents | ca4556fb60b9 |
children | cd58f7fc86db |
comparison
equal
deleted
inserted
replaced
622:02d1386429a6 | 623:c40025d8e750 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File aa_fonts.asm V2.99d | 3 ; File aa_fonts.asm combined next generation V3.01.1 |
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 ;============================================================================= |
9 ; HISTORY | 9 ; HISTORY |
10 ; 2010-11-23 : [jDG] Creation for OSTC 1.72, with the original fonts repacked | 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 | 11 ; 2010-12-01 : [jDG] Adding 3 bit anti-aliased fonts |
12 ;============================================================================= | 12 ;============================================================================= |
13 | 13 |
14 ;---- TINY font description and data ---------------------------------------- | |
15 | 14 |
16 ; Attention: all three fonts need to be in the same 64 kByte page | 15 #include "configuration.inc" |
17 fonts_data CODE_PACK 0x11000 | |
18 | 16 |
19 | 17 |
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 ---------------------------------------- | |
20 global aa_font16_block | 25 global aa_font16_block |
21 aa_font16_block: | 26 aa_font16_block: |
22 DB '°', 0x7F ; remap a few ASCII chars, to avoid | 27 DB '°', 0x7F ; remap a few ASCII chars, to avoid |
23 DB 'ö', 0x80 ; holes in the character table | 28 DB 'ö', 0x80 ; holes in the character table |
24 DB 'ä', 0x81 | 29 DB 'ä', 0x81 |
86 if aa_font28_nbbits != 3 | 91 if aa_font28_nbbits != 3 |
87 error SMALL font should be encoded with 3 bits anti-aliasing! | 92 error SMALL font should be encoded with 3 bits anti-aliasing! |
88 endif | 93 endif |
89 | 94 |
90 ;---- STD font description and data ------------------------------------------ | 95 ;---- STD font description and data ------------------------------------------ |
91 global aa_font36_block | 96 global aa_font34_block |
92 aa_font36_block: | 97 aa_font34_block: |
93 DB '°', 0x7F ; remap a few ASCII chars, to avoid | 98 DB '°', 0x7F ; remap a few ASCII chars, to avoid |
94 DB 'ö', 0x80 ; holes in the character table | 99 DB 'ö', 0x80 ; holes in the character table |
95 DB 'ä', 0x81 | 100 DB 'ä', 0x81 |
96 DB 'ü', 0x82 | 101 DB 'ü', 0x82 |
97 DB 'ß', 0x83 | 102 DB 'ß', 0x83 |
105 DB 'ó', 0x8B | 110 DB 'ó', 0x8B |
106 DB 'ú', 0x8C | 111 DB 'ú', 0x8C |
107 DB 'ñ', 0x8D | 112 DB 'ñ', 0x8D |
108 DB '¡', 0x8E | 113 DB '¡', 0x8E |
109 DB '¿', 0x8F | 114 DB '¿', 0x8F |
110 ; 90, 91 contain the the logo | 115 ; 90, 91 contain the logo |
111 DB 0xB7,0x92 ; cursor | 116 DB 0xB7,0x92 ; cursor |
112 ; 93 is down arrow (dive start) | 117 ; 93 is down arrow (dive start) |
113 ; 94 is up arrow (dive end) | 118 ; 94 is up arrow (dive end) |
114 ; 95 is left-right arrow (dive duration) | 119 ; 95 is left-right arrow (dive duration) |
115 DB '¤', 0x96 ; unused | 120 DB '¤', 0x96 ; unused |
116 DB 0 ; end of translation table | 121 DB 0 ; end of translation table |
117 DB aa_font34_firstChar ; to be subtracted | 122 DB aa_font34_firstChar ; to be subtracted |
118 DB aa_font34_chars ; max value | 123 DB aa_font34_chars ; max value |
119 DB 0x87-aa_font34_firstChar ; replace by ¤ when unknown. | 124 DB 0x87-aa_font34_firstChar ; replace by ¤ when unknown |
120 DB aa_font34_height + 0x80 | 125 DB aa_font34_height + 0x80 |
121 ; | 126 ; |
122 #include "../src/Fonts/aa_font34_idx.inc" | 127 #include "../src/Fonts/aa_font34_idx.inc" |
123 #include "../src/Fonts/aa_font34.inc" | 128 #include "../src/Fonts/aa_font34.inc" |
124 aa_font36_end: | 129 aa_font36_end: |
165 ; Attention: make sure this is coherent... | 170 ; Attention: make sure this is coherent... |
166 if aa_font90_nbbits != 3 | 171 if aa_font90_nbbits != 3 |
167 error SMALL font should be encoded with 3 bits anti-aliasing! | 172 error SMALL font should be encoded with 3 bits anti-aliasing! |
168 endif | 173 endif |
169 | 174 |
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 | |
170 ;============================================================================= | 197 ;============================================================================= |
171 END | 198 END |