Sorry about the ubber necro, but I've ported DOS Rogue to Linux/Mac/BSD, so I'm really interested about VGA fonts, and this topic has many treasures and answers...
VileRancour wrote:To pass the time I've been working on a little project of creating .TTF versions of all those rom fonts, MDA through VGA, including the different width/height variants. Mostly just for the hell of it, though they might prove useful.
They would surely be very valuable to me!
I'm currently using "Perfect DOS VGA", as this was the *only* TTF font I could find on the internet that strives (not sure if it achieves) pixel fidelity. But it required a *lot* of work (remapping CP437 glyphs to their proper Unicode code points, etc), so it would be awesome if I could compare it with your TTF fonts (and perhaps stop reinventing the wheel) 😀
Also, legal status of "Perfect DOS VGA 437" is debatable, so if you could license your TTF to me with GPL/BSD/MIT/CC I would gladly include it in my project, with full credit of course (the project will be released as GPLv3+)
leileilol wrote:They would, because "Perfect DOS VGA" is unstable to use
Care to elaborate on that? What do you mean by "unstable to use"?
VileRancour wrote:Some of the characters aren't that "perfect" though 😁 (cue "I can tell by some of the pixels" image macro)
Which ones? The discrepancies I've found so far, comparing with CP437.F16 extracted from IBM's 2K update emendelson suggested, were:
- 0x0E (U+266B, musical note dbl ), the left beam is 1px shorter
- 0x98 (U+00FF, small y with diaeresis ), the lower curve is 1px narrow
VileRancour wrote:Encoding is bound to be a problem. I could try making them unicode by mixing and matching chars from different codepages, but that's gonna be some real next-level punishment.
That's what I did, for CP437 only: mapped each one of the 255 chars to their proper Unicode codepoints listed in https://en.wikipedia.org/wiki/Code_page_437 . Next-level punishment indeed 😀
VileRancour wrote:8x19 is the only size that really looks "right" with square pixels
I'm interested in 8x16, just like what DOSBox uses for svga_s3. It does not simulate the 9th pixel colum, and IMHO it looks nice on square-pixel LCDs. Of course, I could just be too much used to DOSBox 😜
ripsaw8080 wrote:DOSBox's built-in fonts (8, 14, and 16 line) are bit-for-bit identical to the ones in the IBM VGA BIOS, although they may have come from another source.
Humm, not really bit-for-bit identical. I've found at least 1 discrepancy when comparing with CP437.F16 from IBM:
- 0xE7 (U+03C4, greek small letter tau), DOSBox font is 1 px shorter
Is DOSBox font intended to be bit-to-bit identical to IBM's? If so, should I send a patch for 0xE7?