From: Thomas Harte Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro->font->load Date: Sat, 25 Sep 1999 16:11:01 +0100 Organization: BT Internet Lines: 14 Message-ID: <37ECE605.5BFF7C34@btinternet.com> References: NNTP-Posting-Host: 62.6.21.175 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.6 [en-gb] (Win95; I) X-Accept-Language: en-GB,en,en-* To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > 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