Mercurial > public > hwos_code
view src/aa_fonts.asm @ 634:4050675965ea
3.10 stable release
author | heinrichsweikamp |
---|---|
date | Tue, 28 Apr 2020 17:34:31 +0200 |
parents | 185ba2f91f59 |
children | 75e90cd0c2c3 |
line wrap: on
line source
;============================================================================= ; ; File aa_fonts.asm * combined next generation V3.08.4f ; ; Font-data for the anti-aliased word processor ; ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. ;============================================================================= ; HISTORY ; 2010-11-23 : [jDG] Creation for OSTC 1.72, with the original fonts repacked ; 2010-12-01 : [jDG] Adding 3 bit anti-aliased fonts ;============================================================================= #include "configuration.inc" ; Attention: all fonts need to be in the same 64 kByte page ;============================================================================ fonts_data CODE_PACK 0x10000 ; ex 0x11000 ;============================================================================ ;---- TINY font description and data ---------------------------------------- ; global aa_font16_block aa_font16_block: DB '°', 0x7F ; remap a few ASCII chars, to avoid DB 'ö', 0x80 ; holes in the character table DB 'ä', 0x81 DB 'ü', 0x82 DB 'ß', 0x83 DB 'é', 0x84 ; French accents DB 'è', 0x85 DB 'ê', 0x86 DB 'ç', 0x87 DB 'á', 0x88 ; Spanish accents DB 'í', 0x89 DB 'ó', 0x8A DB 'ú', 0x8B DB 'ñ', 0x8C DB '¡', 0x8D DB '¿', 0x8E DB 0 ; end of translation table DB aa_font16_firstChar ; code of first char in font set DB aa_font16_chars ; number of chars in font set DB '¿'-aa_font16_firstChar ; default char DB aa_font16_height + 0x80 ; font hight and AA flag ; #include "../src/Fonts/aa_font16_idx.inc" #include "../src/Fonts/aa_font16.inc" aa_font16_end: ; Attention: make sure this is coherent if aa_font16_nbbits != 3 error TINY font should be encoded with 3 bits anti-aliasing! endif ;---- SMALL font description and data ---------------------------------------- ; global aa_font28_block aa_font28_block: DB '°', 0x7F ; remap a few ASCII chars, to avoid DB 'ö', 0x80 ; holes in the character table DB 'ä', 0x81 DB 'ü', 0x82 DB 'ß', 0x83 DB 'é', 0x84 ; French accents DB 'è', 0x85 DB 'ê', 0x86 DB 'ç', 0x87 DB 'á', 0x88 ; Spanish accents DB 'í', 0x89 DB 'ó', 0x8A DB 'ú', 0x8B DB 'ñ', 0x8C DB '¡', 0x8D DB '¿', 0x8E DB '¤', 0x8F ; unused ; 90 and 91 contain the logo DB 0xB7,0x92 ; cursor DB 0xB8,0x93 ; arrow down DB 0xB9,0x94 ; arrow up DB 0 ; end of translation table DB aa_font28_firstChar ; code of first char in font set DB aa_font28_chars ; number of chars in font set DB 0x83-aa_font28_firstChar ; default char DB aa_font28_height + 0x80 ; font hight and AA flag ; #include "../src/Fonts/aa_font28_idx.inc" #include "../src/Fonts/aa_font28.inc" aa_font28_end: ; Attention: make sure this is coherent: if aa_font28_nbbits != 3 error SMALL font should be encoded with 3 bits anti-aliasing! endif ;---- STD font description and data ------------------------------------------ ; global aa_font34_block aa_font34_block: DB '°', 0x7F ; remap a few ASCII chars, to avoid DB 'ö', 0x80 ; holes in the character table DB 'ä', 0x81 DB 'ü', 0x82 DB 'ß', 0x83 DB 'é', 0x84 ; French accents DB 'è', 0x85 DB 'ê', 0x86 DB 'ç', 0x87 DB 'à', 0x88 ; Spanish accents DB 'á', 0x89 DB 'í', 0x8A DB 'ó', 0x8B DB 'ú', 0x8C DB 'ñ', 0x8D DB '¡', 0x8E DB '¿', 0x8F ; 90, 91 contain the logo DB 0xB7,0x92 ; cursor ; 93 is down arrow (dive start) ; 94 is up arrow (dive end) ; 95 is left-right arrow (dive duration) DB '¤', 0x96 ; unused DB 0 ; end of translation table DB aa_font34_firstChar ; code of first char in font set DB aa_font34_chars ; number of chars in font set DB 0x87-aa_font34_firstChar ; default char DB aa_font34_height + 0x80 ; font hight and AA flag ; #include "../src/Fonts/aa_font34_idx.inc" #include "../src/Fonts/aa_font34.inc" aa_font36_end: ; Attention: make sure this is coherent: if aa_font34_nbbits != 3 error STANDARD font should be encoded with 3 bits anti-aliasing! endif ;---- MEDIUM font description and data --------------------------------------- ; global aa_font48_block aa_font48_block: DB ' ', 0x3F ; space, full-width ; DB ',', 0x2C ; space, half-width, on position of ',' ; DB '-', 0x2D ; minus, half-width, on position of '-' DB '|', 0x2F ; | half-width DB 0x27, 0x3B ; ' half-width DB '"', 0x3C ; " DB 'm', 0x3D ; m DB 'f', 0x3E ; ft-ligature DB 0 ; end of translation table DB aa_font48_firstChar ; code of first char in font set DB aa_font48_chars ; number of chars in font set DB 0x3F-aa_font48_firstChar ; default char DB aa_font48_height + 0x80 ; font hight and AA flag ; #include "../src/Fonts/aa_font48_idx.inc" #include "../src/Fonts/aa_font48.inc" aa_font48_end: ; Attention: make sure this is coherent: if aa_font48_nbbits != 3 error MEDIUM font should be encoded with 3 bits anti-aliasing! endif ;---- LARGE font description and data ---------------------------------------- ; global aa_font90_block aa_font90_block: DB ' ', 0x2F ; space DB 0 ; end of translation table DB aa_font90_firstChar ; code of first char in font set DB aa_font90_chars ; number of chars in font set DB 0x2F-aa_font90_firstChar ; default char DB aa_font90_height + 0x80 ; font hight and AA flag ; #include "../src/Fonts/aa_font90_idx.inc" #include "../src/Fonts/aa_font90.inc" aa_font90_end: ; Attention: make sure this is coherent: if aa_font90_nbbits != 3 error SMALL font should be encoded with 3 bits anti-aliasing! endif ;---- HUGE font description and data ---------------------------------------- ; global aa_font92_block aa_font92_block: DB ' ', 0x2F ; space DB 0 ; end of translation table DB aa_font92_firstChar ; code of first char in font set DB aa_font92_chars ; number of chars in font set DB 0x2F-aa_font92_firstChar ; default char DB aa_font92_height + 0x80 ; AA flag ; #include "../src/Fonts/aa_font92_idx.inc" #include "../src/Fonts/aa_font92.inc" aa_font92_end: ; Attention: make sure this is coherent: if aa_font92_nbbits != 3 error SMALL font should be encoded with 3bits anti-aliasing... endif ;----------------------------------------------------------------------------- END