delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/15/11:49:04

From: "Grzegorz Adam Hankiewicz" <gregorio AT jet DOT es>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Font problem
Date: Fri, 15 Aug 1997 17:13:13 +0200
Organization: Unisource Espana NEWS SERVER
Lines: 24
Message-ID: <5t1rg5$lk6$1@talia.mad.ibernet.es>
References: <01bca794$5df580a0$0c866fc6 AT stilwelakirtland DOT cc DOT mi DOT us>
NNTP-Posting-Host: info603.jet.es
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

 >Could someone help me? I used a program called ttf2pcx that converted my
>True Type Fonts into .PCX files so Allegro could use them. Now, I can get
>the font to display on the screen just fine. But my problem is that it
>always is on a black background. I need the text to be on a blue back
>ground. I tried loading in a new pallete, but it just changed all the other
>colors on my screen. Could someone help me? Thanks.

What you need is to use the function text_mode(int mode);
This function sets the mode in which text will be drawn. If mode is zero or
positive, text output will be opaque and the background of the characters
will be set to color #mode. If mode is negative, text will be drawn
transparently (ie. the background of the characters will not be altered).
The default is a mode of zero.

Directly taken from the Allegro docs...

- G.A. Hankiewicz - ICQ 255289 - gregorio AT jet DOT es
        http://web.jet.es/gregorio
- Gogosoftware
        http://gogosoftware.base.org




- Raw text -


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