annotate src/aa_fonts.asm @ 570:c8ea60294175

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