comparison src/aa_fonts.asm @ 0:11d4fc797f74

init
author heinrichsweikamp
date Wed, 24 Apr 2013 19:22:45 +0200
parents
children e4e662746c02
comparison
equal deleted inserted replaced
-1:000000000000 0:11d4fc797f74
1 ;=============================================================================
2 ;
3 ; File aa_fonts.asm
4 ;
5 ; Font-data for the anti-aliased word processor
6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;=============================================================================
9 ; HISTORY
10 ; 2010-11-23 : [jDG] Creation for OSTC 1.72, with the original fonts repacked.
11 ; 2010-12-01 : [jDG] Adding 3bits antialiased fonts.
12 ;=============================================================================
13
14 ;---- TINY font description and data ----------------------------------------
15 fonts_data CODE_PACK
16
17
18 global aa_font16_block
19 aa_font16_block:
20 DB '°', 0x7F ; Remap a few ASCII chars, to avoid
21 DB 'ö', 0x80 ; holes in the character table...
22 DB 'ä', 0x81
23 DB 'ü', 0x82
24 DB 'ß', 0x83
25 DB 'é', 0x84 ; French accents
26 DB 'è', 0x85
27 DB 'ê', 0x86
28 DB 'ç', 0x87
29 DB 'á', 0x88 ; Spanish accents
30 DB 'í', 0x89
31 DB 'ó', 0x8A
32 DB 'ú', 0x8B
33 DB 'ñ', 0x8C
34 DB '¡', 0x8D
35 DB '¿', 0x8E
36 DB 0 ; End of translation table
37 DB aa_font16_firstChar ; To be substracted
38 DB aa_font16_chars ; Max value
39 DB '¿'-aa_font16_firstChar ; replace by ¿ when unknown.
40 DB aa_font16_height + 0x80
41 ;
42 #include "../OSTC3/Fonts/aa_font16_idx.inc" ; SHOULD FOLLOW !
43 #include "../OSTC3/Fonts/aa_font16.inc"
44 aa_font16_end:
45 ; Make sure this is coherent...
46 if aa_font16_nbbits != 3
47 error TINY fount should be encoded with anti-aliasing...
48 endif
49
50 ;---- SMALL font description and data ----------------------------------------
51 global aa_font28_block
52 aa_font28_block:
53 DB '°', 0x7F ; Remap a few ASCII chars, to avoid
54 DB 'ö', 0x80 ; holes in the character table...
55 DB 'ä', 0x81
56 DB 'ü', 0x82
57 DB 'ß', 0x83
58 DB 'é', 0x84 ; French accents
59 DB 'è', 0x85
60 DB 'ê', 0x86
61 DB 'ç', 0x87
62 DB 'á', 0x88 ; Spanish accents
63 DB 'í', 0x89
64 DB 'ó', 0x8A
65 DB 'ú', 0x8B
66 DB 'ñ', 0x8C
67 DB '¡', 0x8D
68 DB '¿', 0x8E
69 DB '¤', 0x8F ; Unused
70 ; 90, 91 are the logo.
71 DB 0xB7,0x92 ; Cursor
72 DB 0xB8,0x93 ; Dimmed cursor.
73 DB 0 ; End of translation table
74 DB aa_font28_firstChar ; To be substracted
75 DB aa_font28_chars ; Max value
76 DB 0x83-aa_font28_firstChar; replace by ¤ when unknown.
77 DB aa_font28_height + 0x80
78 ;
79 #include "../OSTC3/Fonts/aa_font28_idx.inc" ; SHOULD FOLLOW !
80 #include "../OSTC3/Fonts/aa_font28.inc"
81 aa_font28_end:
82 ; Make sure this is coherent...
83 if aa_font28_nbbits != 3
84 error SMALL fount should be encoded with anti-aliasing...
85 endif
86
87 ;---- STD font description and data ------------------------------------------
88 global aa_font36_block
89 aa_font36_block:
90 DB '°', 0x7F ; Remap a few ASCII chars, to avoid
91 DB 'ö', 0x80 ; holes in the character table...
92 DB 'ä', 0x81
93 DB 'ü', 0x82
94 DB 'ß', 0x83
95 DB 'é', 0x84 ; French accents
96 DB 'è', 0x85
97 DB 'ê', 0x86
98 DB 'ç', 0x87
99 DB 'à', 0x88 ; Spanish accents
100 DB 'á', 0x89 ; Spanish accents
101 DB 'í', 0x8A
102 DB 'ó', 0x8B
103 DB 'ú', 0x8C
104 DB 'ñ', 0x8D
105 DB '¡', 0x8E
106 DB '¿', 0x8F
107 ; 90, 91 are the logo.
108 DB 0xB7,0x92 ; Cursor
109 ; 93 is down arrow (dive start)
110 ; 94 is up arrow (dive end)
111 ; 95 is left-right arrow (dive duration)
112 DB '¤', 0x96 ; Unused
113 DB 0 ; End of translation table
114 DB aa_font34_firstChar ; To be substracted
115 DB aa_font34_chars ; Max value
116 DB 0x87-aa_font34_firstChar; replace by ¤ when unknown.
117 DB aa_font34_height + 0x80
118 ;
119 #include "../OSTC3/Fonts/aa_font34_idx.inc" ; SHOULD FOLLOW !
120 #include "../OSTC3/Fonts/aa_font34.inc"
121 aa_font36_end:
122 ; Make sure this is coherent...
123 if aa_font34_nbbits != 3
124 error STANDARD fount should be encoded with anti-aliasing...
125 endif
126
127 ;---- MEDIUM font description and data ---------------------------------------
128 global aa_font48_block
129 aa_font48_block:
130 DB 0x27, 0x3B ; ' char
131 DB '"', 0x3C
132 DB 'm', 0x3D
133 DB 'f', 0x3E
134 DB ' ', 0x3F
135 DB 0
136 DB aa_font48_firstChar
137 DB aa_font48_chars
138 DB 0x3E-aa_font48_firstChar
139 DB aa_font48_height + 0x80 ; AA flag.
140 ;
141 #include "../OSTC3/Fonts/aa_font48_idx.inc"
142 #include "../OSTC3/Fonts/aa_font48.inc"
143 aa_font48_end:
144 ; Make sure this is coherent...
145 if aa_font48_nbbits != 3
146 error MEDIUM fount should be encoded with 3bits anti-aliasing...
147 endif
148
149 ;---- LARGE font description and data ----------------------------------------
150 global aa_font90_block
151 aa_font90_block:
152 DB ' ', 0x2F
153 DB 'm', 0x3A
154 DB 'f', 0x3B
155 DB 0
156 DB aa_font90_firstChar
157 DB aa_font90_chars
158 DB 0x2F-aa_font90_firstChar
159 DB aa_font90_height + 0x80 ; AA flag.
160 ;
161 #include "../OSTC3/Fonts/aa_font90_idx.inc"
162 #include "../OSTC3/Fonts/aa_font90.inc"
163 aa_font90_end:
164 ; Make sure this is coherent...
165 if aa_font90_nbbits != 3
166 error SMALL fount should be encoded with 3bits anti-aliasing...
167 endif
168
169 ;=============================================================================
170 END