comparison code_part1/OSTC_code_asm_part1/aa_fonts.asm @ 83:3e351e25f5d1

adding anti-aliased fonts frame and merging some patches from Jeando
author heinrichsweikamp
date Tue, 07 Dec 2010 22:36:19 +0100
parents
children 3bcccb697bce
comparison
equal deleted inserted replaced
82:bc3092c41335 83:3e351e25f5d1
1 ;=============================================================================
2 ;
3 ; file aa_fonts.asm
4 ; brief Font-data for the (futurly anti-aliased) word processor
5 ; author JD Gascuel.
6 ;
7 ; copyright (c) 2010, JD Gascuel. All rights reserved.
8 ; $Id$
9 ;=============================================================================
10 ; HISTORY
11 ; 2010-11-23 : [jDG] Creation with the original 1.72 fonts repacked.
12 ;
13 ; BUGS:
14 ;
15
16 ; Original fonts where byte swapped in PROM memory, but the repacked don't...
17 ; AA_BYTE_SWAP EQU 1
18
19 ;---- SMALL font description and data ----------------------------------------
20 aa_font28 code_pack
21 aa_font28_block:
22 DB ' ', 0x80 ; Translate space
23 DB '²', 0x81
24 DB '°', 0x82
25 DB '¤', 0x83
26 DB 0xB7,0x7F ; Cursor...
27 DB 0 ; End of translation table
28 DB aa_font28_firstChar ; To be substracted
29 DB aa_font28_chars ; Max value
30 DB 0x83-aa_font28_firstChar ; replace by ? when out.
31 DB aa_font28_height + 0x80
32 ;
33 #include "aa_font28_idx.inc" ; SHOULD FOLLOW !
34 #include "aa_font28.inc"
35 ; Make sure this is coherent...
36 if aa_font28_nbbits != 3
37 error SMALL fount should be encoded with anti-aliasing...
38 endif
39
40 ;---- MEDIUM font description and data ---------------------------------------
41 aa_font48 code_pack
42 aa_font48_block:
43 DB 0x27, 0x3B ; ' char
44 DB '"', 0x3C
45 DB 'm', 0x3D
46 DB ' ', 0x3E
47 DB 0
48 DB aa_font48_firstChar
49 DB aa_font48_chars
50 DB 0x3E-aa_font48_firstChar
51 DB aa_font48_height + 0x80 ; AA flag.
52 ;
53 #include "aa_font48_idx.inc"
54 #include "aa_font48.inc"
55 ; Make sure this is coherent...
56 if aa_font48_nbbits != 3
57 error MEDIUM fount should be encoded with 3bits anti-aliasing...
58 endif
59
60 ;---- LARGE font description and data ----------------------------------------
61 aa_font90 code_pack
62 aa_font90_block:
63 DB ' ', 0x2F
64 DB 0
65 DB aa_font90_firstChar
66 DB aa_font90_chars
67 DB 0x2F-aa_font90_firstChar
68 DB aa_font90_height + 0x80 ; AA flag.
69 ;
70 #include "aa_font90_idx.inc"
71 #include "aa_font90.inc"
72 ; Make sure this is coherent...
73 if aa_font90_nbbits != 3
74 error SMALL fount should be encoded with 3bits anti-aliasing...
75 endif