delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/25/11:37:57

From: Thomas Harte <T DOT Harte AT btinternet DOT com>
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: <gm2H3.948$Mb6 DOT 1127 AT nntpserver DOT swip DOT net>
NNTP-Posting-Host: 62.6.21.175
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019