Mail Archives: djgpp/1999/09/25/11:37:57
> How do I load fonts with allegro, what format should they be and where can I
> find any?
The only way to load fonts is via a datafile, and if you go to the Allegro
homepage (http://www.talula.demon.co.uk/allegro and various mirrors too), you
can grab the ttf2pcx utility which converts TrueType fonts to Allegro useable
fonts for a given point size.
Loading the datafile is as simple as making the grabber give you a header
file, including it, using DATAFILE *data = load_datafile(...) and then passing
the argument data[Name_of_Font_Object].dat as your font to the various
functions.
-Thomas
- Raw text -