GD fontmaker


This free PHP code creates GD fonts for use with PHP’s ImageString function. It takes a PNG as input and creates a GD compatible font from it. The online demo includes an example PNG and detailed usage instructions.

Essentially, you supply an image like this:

And this code will create a GD compatible font from it. Cool eh?

demoDownload PHP Source

If you’re looking to re-create existing fonts, try the windows font to GD Font convertor by philiplb.de

I think my script is more useful for creating your own custom GD fonts, or if you want to modify an existing font (or for learning exactly how GD fonts are constructed).

Bookmark and Share


Related Posts:

, , , , ,

  1. #1 by Fiestoforo on May 27, 2010 - 6:45 AM

    Thanks for this! Will give it a try!

(will not be published)