Subject: kernel fonts
To: None <port-amiga@netbsd.org>
From: Ignatios Souvatzis <is@beverly.kleinbus.org>
List: port-amiga
Date: 06/20/2000 21:36:11
Hello,

on the A2410 and the custom chip console, the
kf_8x8.c and kf_8x11.c (or a font translated by the user from an Amiga font)
are used for the text mode.

Currently, boldening is done by or-ing the character with its right-shifted
(in practice, by 1) copy, then blitting the widened character into the same
character box.

Because of this,

a) we can't easily create 80 character lines on 640 pixel
   displays.... we always subtract 1. 

b) Also, some side by side bold characters overlap.

c) the C (instead of asm("bfins") version of the blit routines are wrong, or
   at least different in behaviour from the asm versions, in that they only
   blit 8 pixels wide, even for bold characters.

[In case you wonder: the C version is used for amigappc, and of course to test
 that it works.]

Ways out:

1. make the display buffer one word wider and do not use that last word,
   which would make blitting into it invisible...

   fixes a), but of course not b) or c)
   (but somebody needs to look at the code to find out how to do it exactly).

2. only blit the font-width 
   fixes a), c) and even b), the asm version is faster for every 4th character 
   (but it looks different than what the original ite_cc/kf_8x8 creators
    did).

Any opinions?

(to get a rough view of what 2. looks like, compile a kernel with
 options USE_C_BFOPS).

Regards,
	-is