delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/20/19:53:56

From: Jose Manuel Lopez-Cepero <sigma AT ctv DOT es>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HLP: Big Fonts (Allegro)
Date: Thu, 17 Apr 1997 23:23:25 +0200
Organization: Unisource Espana NEWS SERVER
Lines: 32
Message-ID: <335694CD.789F@ctv.es>
References: <19970408194421380 DOT AAA195 AT ns1 DOT megsinet DOT net>
Reply-To: sigma AT ctv DOT es
NNTP-Posting-Host: macarena.ctv.es
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello Paul,

Paul Schmidt wrote:

> How do you display fonts that are bigger than the 8x8 ROM set?
> I want to add the title of my program to the top of the screen in a font
> bigger than the 8x8 ROM set (mode 13h) using Allegro.  How do I do this?
> If you want to see my program (I tried to use the font in example.dat in the
> \allegro\examples directory, but I couldn't get it to work right (I didn't
> like it too much either, but if I can get it to work, it'll do.) you can

I haven't tested your program (lack o' time :-)) but it is not really
difficult. You should load the font (from a datafile), suppose the
datafile is k and the font id is THE_FONT, you should come out with
something like:

outtext (screen, k[THE_FONT].dat, x, y, "Whatever");

Note I can't expect it to be right, I can't remember the exact syntax
(:-), but this is the way the font parameter has to be passed.

Where to get fonts from? Have a look at TTF2PCX, a W95/3.1 program which
renders TTF fonts to a format you can import with the grabber. It is on
Shawn's page.

Bye
-- 
 _*                        
\ |/_|\/||\                                 sigma AT ctv DOT es      
_\|\/|  ||_\  (formerly Sigmatech)      Jerez / Cadiz / Spain


- Raw text -


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