DancingSquid, my little engine, includes ttf font rendering. The test program shows the font rendering below.
Non-Bitmap Font Rendering |
On top of the DancingSquid engine I've written a small simple bitmap font renderer, to render fonts like those in 16-bit console games. All the fonts are monospace (no kerning) each glyph is a 8x8 pixel box. Because the pixels of the font align perfectly and the font is so tiny each pixel matters; it's much sharper.
Bitmap Font rendering |
If you've read the blog before you probably know I'm writing How to Make an RPG. This bitmap font rendering code won't be making it into the book (but will be freely available). I want to avoid too much low-level engine stuff. I'll update with an article, after the book release, showing how the bitmap font rendering works and how to add it.
... beause these screenshots have been resized the difference might not be super apparent but clicking on the image should enlarge it!
No comments:
Post a Comment