dos- vga font
category: general [glöplog]
It's been awhile since I've done anything in dos. Where's the vga-font stored in the video bios again? Where's that address? I've been googling around to no avail.
Code:
const unsigned char *ptr = (unsigned char *)0xf0000 + 0xfa6e + 8*character;
AHH!! There it is!! Thank you, I would of never found it- I was scanning the c000:0000 region!!
What's next? CP/M ?
@trc_wm: which variety?
As far a I remember you cant know for sure of a universal way to retrieve it on all hardware. I also remember there was a bios int that was suposed to return you a pointer to this data, but no more certainity it works everywhere either...though i guess you could get away with using the seemingly most accepted answer.
animating character 255 is a good trick :)
this font?
no no- this font mate
given that table, why would you want to animate character 255?
neoneye: Most likely no.
IIRC in DOS character 255 is blank and almost never used.
so can be used for a fake space or for other purpouses.
so can be used for a fake space or for other purpouses.
...and for Win/Linux there's Fixedsys Excelsior.
You can also find the rom-dumped font data in textfx sources.