0
|
1 ;=============================================================================
|
|
2 ;
|
604
|
3 ; File aa_fonts.asm V2.99d
|
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
|
|
14 ;---- TINY font description and data ----------------------------------------
|
604
|
15
|
|
16 ; Attention: all three fonts need to be in the same 64 kByte page
|
|
17 fonts_data CODE_PACK 0x11000
|
0
|
18
|
|
19
|
604
|
20 global aa_font16_block
|
0
|
21 aa_font16_block:
|
604
|
22 DB '°', 0x7F ; remap a few ASCII chars, to avoid
|
|
23 DB 'ö', 0x80 ; holes in the character table
|
|
24 DB 'ä', 0x81
|
|
25 DB 'ü', 0x82
|
|
26 DB 'ß', 0x83
|
|
27 DB 'é', 0x84 ; French accents
|
|
28 DB 'è', 0x85
|
|
29 DB 'ê', 0x86
|
|
30 DB 'ç', 0x87
|
|
31 DB 'á', 0x88 ; Spanish accents
|
|
32 DB 'í', 0x89
|
|
33 DB 'ó', 0x8A
|
|
34 DB 'ú', 0x8B
|
|
35 DB 'ñ', 0x8C
|
|
36 DB '¡', 0x8D
|
|
37 DB '¿', 0x8E
|
|
38 DB 0 ; end of translation table
|
|
39 DB aa_font16_firstChar ; to be subtracted
|
|
40 DB aa_font16_chars ; max value
|
|
41 DB '¿'-aa_font16_firstChar ; replace by ¿ when unknown
|
|
42 DB aa_font16_height + 0x80
|
0
|
43 ;
|
604
|
44 #include "../src/Fonts/aa_font16_idx.inc"
|
1
|
45 #include "../src/Fonts/aa_font16.inc"
|
0
|
46 aa_font16_end:
|
604
|
47 ; Attention: make sure this is coherent
|
0
|
48 if aa_font16_nbbits != 3
|
604
|
49 error TINY font should be encoded with 3 bits anti-aliasing!
|
0
|
50 endif
|
|
51
|
|
52 ;---- SMALL font description and data ----------------------------------------
|
604
|
53 global aa_font28_block
|
0
|
54 aa_font28_block:
|
604
|
55 DB '°', 0x7F ; remap a few ASCII chars, to avoid
|
|
56 DB 'ö', 0x80 ; holes in the character table
|
|
57 DB 'ä', 0x81
|
|
58 DB 'ü', 0x82
|
|
59 DB 'ß', 0x83
|
|
60 DB 'é', 0x84 ; French accents
|
|
61 DB 'è', 0x85
|
|
62 DB 'ê', 0x86
|
|
63 DB 'ç', 0x87
|
|
64 DB 'á', 0x88 ; Spanish accents
|
|
65 DB 'í', 0x89
|
|
66 DB 'ó', 0x8A
|
|
67 DB 'ú', 0x8B
|
|
68 DB 'ñ', 0x8C
|
|
69 DB '¡', 0x8D
|
|
70 DB '¿', 0x8E
|
|
71 DB '¤', 0x8F ; unused
|
|
72 ; 90 and 91 contain the logo
|
|
73 DB 0xB7,0x92 ; cursor
|
|
74 DB 0xB8,0x93 ; arrow down
|
|
75 DB 0xB9,0x94 ; arrow up
|
|
76 DB 0 ; end of translation table
|
|
77 DB aa_font28_firstChar ; to be subtracted
|
|
78 DB aa_font28_chars ; max value
|
|
79 DB 0x83-aa_font28_firstChar ; replace by ¤ when unknown
|
|
80 DB aa_font28_height + 0x80
|
0
|
81 ;
|
604
|
82 #include "../src/Fonts/aa_font28_idx.inc"
|
1
|
83 #include "../src/Fonts/aa_font28.inc"
|
0
|
84 aa_font28_end:
|
604
|
85 ; Attention: make sure this is coherent...
|
0
|
86 if aa_font28_nbbits != 3
|
604
|
87 error SMALL font should be encoded with 3 bits anti-aliasing!
|
0
|
88 endif
|
|
89
|
|
90 ;---- STD font description and data ------------------------------------------
|
604
|
91 global aa_font36_block
|
0
|
92 aa_font36_block:
|
604
|
93 DB '°', 0x7F ; remap a few ASCII chars, to avoid
|
|
94 DB 'ö', 0x80 ; holes in the character table
|
|
95 DB 'ä', 0x81
|
|
96 DB 'ü', 0x82
|
|
97 DB 'ß', 0x83
|
|
98 DB 'é', 0x84 ; French accents
|
|
99 DB 'è', 0x85
|
|
100 DB 'ê', 0x86
|
|
101 DB 'ç', 0x87
|
|
102 DB 'à', 0x88 ; Spanish accents
|
|
103 DB 'á', 0x89
|
|
104 DB 'í', 0x8A
|
|
105 DB 'ó', 0x8B
|
|
106 DB 'ú', 0x8C
|
|
107 DB 'ñ', 0x8D
|
|
108 DB '¡', 0x8E
|
|
109 DB '¿', 0x8F
|
|
110 ; 90, 91 contain the the logo
|
|
111 DB 0xB7,0x92 ; cursor
|
|
112 ; 93 is down arrow (dive start)
|
|
113 ; 94 is up arrow (dive end)
|
|
114 ; 95 is left-right arrow (dive duration)
|
|
115 DB '¤', 0x96 ; unused
|
|
116 DB 0 ; end of translation table
|
|
117 DB aa_font34_firstChar ; to be subtracted
|
|
118 DB aa_font34_chars ; max value
|
|
119 DB 0x87-aa_font34_firstChar ; replace by ¤ when unknown.
|
|
120 DB aa_font34_height + 0x80
|
0
|
121 ;
|
604
|
122 #include "../src/Fonts/aa_font34_idx.inc"
|
1
|
123 #include "../src/Fonts/aa_font34.inc"
|
0
|
124 aa_font36_end:
|
604
|
125 ; Attention: make sure this is coherent...
|
0
|
126 if aa_font34_nbbits != 3
|
604
|
127 error STANDARD font should be encoded with 3 bits anti-aliasing!
|
0
|
128 endif
|
|
129
|
|
130 ;---- MEDIUM font description and data ---------------------------------------
|
604
|
131 global aa_font48_block
|
0
|
132 aa_font48_block:
|
604
|
133 DB 0x27, 0x3B ; ' char
|
|
134 DB '"', 0x3C
|
|
135 DB 'm', 0x3D
|
|
136 DB 'f', 0x3E
|
|
137 DB ' ', 0x3F
|
|
138 DB 0
|
|
139 DB aa_font48_firstChar
|
|
140 DB aa_font48_chars
|
|
141 DB 0x3E-aa_font48_firstChar
|
|
142 DB aa_font48_height + 0x80 ; AA flag
|
0
|
143 ;
|
1
|
144 #include "../src/Fonts/aa_font48_idx.inc"
|
|
145 #include "../src/Fonts/aa_font48.inc"
|
0
|
146 aa_font48_end:
|
604
|
147 ; Attention: make sure this is coherent...
|
0
|
148 if aa_font48_nbbits != 3
|
604
|
149 error MEDIUM font should be encoded with 3 bits anti-aliasing!
|
0
|
150 endif
|
|
151
|
|
152 ;---- LARGE font description and data ----------------------------------------
|
604
|
153 global aa_font90_block
|
0
|
154 aa_font90_block:
|
604
|
155 DB ' ', 0x2F
|
|
156 DB 0
|
|
157 DB aa_font90_firstChar
|
|
158 DB aa_font90_chars
|
|
159 DB 0x2F-aa_font90_firstChar
|
|
160 DB aa_font90_height + 0x80 ; AA flag
|
0
|
161 ;
|
1
|
162 #include "../src/Fonts/aa_font90_idx.inc"
|
|
163 #include "../src/Fonts/aa_font90.inc"
|
0
|
164 aa_font90_end:
|
604
|
165 ; Attention: make sure this is coherent...
|
0
|
166 if aa_font90_nbbits != 3
|
604
|
167 error SMALL font should be encoded with 3 bits anti-aliasing!
|
0
|
168 endif
|
|
169
|
|
170 ;=============================================================================
|
604
|
171 END |