gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS Misc > Converting TTF fonts to sprites?

#118741 - OOPMan - Fri Feb 16, 2007 10:06 am

Hmmm, I was just wondering if anyone knows of any tools that exist to do this?

I need to create sprites of the various characters making up a font. While I could probably use GIMP and muck about, it would be nice if there was quicker way...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#118760 - tepples - Fri Feb 16, 2007 2:43 pm

There used to be a program called TTF2PCX, which I used for my Allegro based games until it stopped working sometime around when I upgraded from Windows 9x to Windows 2000. You might consider making a program that does something similar using the FreeType library.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#118768 - OOPMan - Fri Feb 16, 2007 4:26 pm

Thanks :-)

I did some more careful googling this time and found a bunch of tools that convert TTFs into various bitmap formats :-)

Bah, next time I'll be less quick to post a "Help Plz" topic :-)
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#119001 - Tantrum - Mon Feb 19, 2007 1:28 am

ImageMagick ( http://www.imagemagick.org/script/index.php ) will render TTFs into a bitmap (I think you'll have to pass in a string of all the chars you want tho). A little tip is to render big then scale the resulting bitmap down, this way you get a better quality image than rendering the TTF directly at a small size.