www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/01/10:36:39

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Fonts
Date: Sat, 1 Feb 1997 13:39:07 +0000
Organization: None
Distribution: world
Message-ID: <BaPjRAA7d08yEwxk@talula.demon.co.uk>
References: <5chfq0$5do$1 AT nargun DOT cc DOT uq DOT oz DOT au>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Steven Cook writes:
>Hi, I am writing some allegro code and don't like the default font, that
>is used.  Where can I find different fonts or information on how to create
>my own fonts.

The easiest approach is to use the grabber utility to insert fonts into
a datafile (look at examples/ex12 for a demo of how to do this). The
grabber can read GRX format .FNT files (there are a lot of these in the
GRX distribution), and from PCX images that have each character
surrounded by a box of color #255, which you can draw in a paint
program.

Alternatively, on my web page there is a win95 utility called ttf2pcx,
that converts TrueType fonts into PCX images which can be read by the
grabber.

/*
 *  Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
 *  Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
 */

- Raw text -


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