GD fontMaker v1

total number of characters
starting character
character width
character height
PNG image
This script takes a PNG image as input and creates a GD compatible font from it.

Usage is best described with an example;
This file is a PNG of the Arial font.
Each character is 34 pixels wide by 50 pixels high.
The starting character is 'a', and there are 26 characters in total.
Anything other than pure black will be treated as the background of the PNG; this is useful as it allows you to draw guidelines as in the example PNG

Characters must be in ASCII code order, which means that the ideal character set is:
(space)!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

But if you're lazy like me, you'll be pleased to hear that GD will process any undefined character as a space;
In other words, my example can be used to spell "hi there", even though there is no space defined in the font.
But it can't spell "Hi There" because I didn't include capitals; what it would write is:
" i  here"

Known Bugs
You can't create fonts with characters greater than 255 pixels in either dimension, or with more than 255 characters in total (if you need me to, I can solve this)