I have some custom code which does more or less the same than SFont, but
uses the alpha values in the pre-rendered font so the font color can be
dinamically set at runtime. It also does some layout, which I’m not sure
if SFont does.
I can try detaching it from the rest of the project and making it a
standalone lib. If you’re interested in the method itself, just ask!
--Gabriel
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy> ----- Original Message -----
From: Jesse David Andrews [mailto:jdandr2@uky.edu]
Sent: Martes, 20 de Mayo de 2003 02:47 p.m.
To: sdl at libsdl.org
Subject: Re: Re: [SDL] Text on SDLI think a popular one is sfont.
http://www.linux-games.com/sfont/
Basically the idea is that you have a file full of pre-rendered text and
you blit what you want (one letter at a time… well the library does 1
letter at a time).You can also make bitmap data structures in your code (or include them!)
but this has problems on a few platforms (think Mac OS classic).Jesse
-----Original Message-----
From: carlosvra@mevran.com.ar (Carlos Vrancken)
To: sdl at libsdl.org
Date: Tue, 20 May 2003 12:38:18 -0500
Subject: Re: [SDL] Text on SDLHmmm… and what are those ways to draw text? is there any documentation
about it?Thanks!!
Carlos
On Tue, 2003-05-20 at 11:58, Bob Pendleton wrote:
On Tue, 2003-05-20 at 10:38, Carlos Vrancken wrote:
Hi! I’m seeing a discussion on the SDL_ttf library, which I have not
used (yet?).
Is this library the only way to write text on a SDL display?
No. SDL allows you to draw text any way you chose.
SDL_ttf is a library for generating SDL surfaces from true type font
(.ttf) files. You can then blit those to another SDL surface to draw
text.Bob Pendleton
Thanks,
Carlos
–
Carlos Vrancken
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl