Mail Archives: djgpp/1997/04/20/19:53:56
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 -