GDFConv is a utility I made to convert Adobe BDF format bitmap fonts to GDImage format bitmap fonts. This was the first C project I've made in a while, so the code isn't the best, but it does work.
USAGE: (./)gdfconv font_file.bdf [encoding_offset] * The output file will be the same as the font file but with .gdf * The encoding offset allows you to skip converting characters with encodings lower than the offset. TIPS: * The tool Fony can convert Windows fnt files to compatible BDF files. * PHP fonts are all monospace. * If you'd like to manually implement variable widths, gdfconv outputs a file named "variable.txt" that has an array containing each character (encoding) and its corresponding spacings. A sample implementation is available in imagestringvariable.php * If your font seems to display the wrong characters, try setting the encoding offset to 32 (for space). KNOWN ISSUES: * There is a bug that causes some characters to be missing chunks, unsure what causes this. :( * If the bdf file does not only feature consecutive characters, it will not work properly, as php fonts only define the encoding of the first character. This can be combatted via the encoding offset, but that only serves to skip characters. UNIMPLEMNTED FIXES (DIY): * The consecutive character bug could be fixed by filling in gaps with blank characters. BUILDING: Run the makefile, GDFConv does not require any external libraries!