
PNGcustomfont example programs

These are some examples of how the whole system works.  font_demo1.exe is
a simple demo that shows how the various drawing methods look;  play around with
the code if you want.  Pressing ESC closes it.  The motion can be paused or unpaused
with SPACEbar.  Pretty cool demo, if you ask me.

The other demos are the same as the demos from Lachie's original customfont_ver2,
but modified somewhat to work with PNGcustomfont.  They don't always have the
same fonts as the demos from customfont_ver2, either.

8bit-fonttest is just that, an 8-bit font test.  Because 8-bit fonts must be BMPs, they
actually take up MORE space than 32-bit PNG fonts (since PNGs are compressed),
so I made this one very small.  If you want a real 8-bit font you'll need to make one
yourself;  it probably wouldn't be too hard, really, just take one of the other fonts
and convert to 8-bit colour (using IrfanView or something similar), replacing the
alpha with transparency.  Most of the fonts aren't anti-aliased, so you shouldn't have
too much difficulty with that.

PNGcf_gencfg is the program used to generate the configuration INI files for the
fonts.  You can look at the source if you want to understand the file format better
or something - it's pretty basic, the program doesn't even glance at the images.
Note that no error checking is done, so make sure the input you give this program
is correct or your font ini file will be useless.  You'll practically need this if you're
going to make your own fonts, which you doubtless are.  Create your fonts on a grid,
then run the program and answer the program's questions.  Put the PNG and the
INI file together and you have a font!  Look at the example program for how to
load and display it.  If your fonts aren't on a grid, it will be much harder and you may
as well do it yourself.  In most cases however, it will be pretty easy to get everything
on a grid.