I want to change the hardware font for my OS. Does anyone know where
I can get some information on doing this? Thanks.
Changing hardware font
RE:Changing hardware font
>On 2001-08-03 02:16:41, Hillbillie wrote:
>I want to change the hardware font for my OS. Does anyone know where
>I can get some information on doing this? Thanks.
VGA has four "planes". Call them plane 1,
plane 2, plane 4, and plane 8.
In text mode, plane 1 = text,
plane 2 = attribute bytes,
plane 4 = font,
plane 8 = ???
To change the font:
- turn off planes 1 and 2,
and turn on plane 4
- turn off Even-Odd mode
- write the font to framebuffer
memory (B800:0000)
- turn on Even-Odd
- turn off plane 4,
and turn on planes 1 and 2
Font characters can be up to 32 pixels high.
Characters are always 1 byte wide (8 pixels).
Each font character is 32 bytes exactly.
http://www.execpc.com/~geezer/temp/90x60.c
>I want to change the hardware font for my OS. Does anyone know where
>I can get some information on doing this? Thanks.
VGA has four "planes". Call them plane 1,
plane 2, plane 4, and plane 8.
In text mode, plane 1 = text,
plane 2 = attribute bytes,
plane 4 = font,
plane 8 = ???
To change the font:
- turn off planes 1 and 2,
and turn on plane 4
- turn off Even-Odd mode
- write the font to framebuffer
memory (B800:0000)
- turn on Even-Odd
- turn off plane 4,
and turn on planes 1 and 2
Font characters can be up to 32 pixels high.
Characters are always 1 byte wide (8 pixels).
Each font character is 32 bytes exactly.
http://www.execpc.com/~geezer/temp/90x60.c
RE:Changing hardware font
Thanks, Chris. Good code example. Are there any other online resources
about it you know of?
about it you know of?
RE:Changing hardware font
>On 2001-08-03 12:34:53, Hillbillie wrote:
>Thanks, Chris. Good code example. Are there any other online resources
>about it you know of?
(docs) Finn Thøgersen's VGADOC
http://home.worldonline.dk/~finth/
(docs) FreeVGA
http://www.goodnet.com/~tinara/FreeVGA/home.htm
(docs) IBM RS/6000 manual, Appendix A - VGA Programming Model
http://www.rs6000.ibm.com/resource/tech ... p.mak.html
(code) Tauron VGA utilities
http://home.onestop.net/kinfira/tauron/tauron.ftml
>Thanks, Chris. Good code example. Are there any other online resources
>about it you know of?
(docs) Finn Thøgersen's VGADOC
http://home.worldonline.dk/~finth/
(docs) FreeVGA
http://www.goodnet.com/~tinara/FreeVGA/home.htm
(docs) IBM RS/6000 manual, Appendix A - VGA Programming Model
http://www.rs6000.ibm.com/resource/tech ... p.mak.html
(code) Tauron VGA utilities
http://home.onestop.net/kinfira/tauron/tauron.ftml