[SDL] write formatted text

Anatoly R. emulynx at delfi.lv
Mon Jan 13 08:51:01 PST 2003

Hello Thomas,

Monday, January 13, 2003, 6:16:47 PM, you wrote:

TE> Is there some LGPL-library to put out formatted text?
TE> E.g. some RTF to SDL_Surface "converter"?

TE> In my app I have to show lots of "infocards" which 
TE> contain picture and text information about specific topics.

TE> I would like to store the text (multiline) of every infocard in 
TE> a separate text file, load it on demand, and show it inside 
TE> a "text field" with specific position, width, and height.

Ehm, that doesn't have to do anything with SDL.
You need to do that yourself. Open a file with text, split it in X
byte chunks searching for line breaks. Use bfont/sdl_ttf and show
that stuff on the screen.

I think SDL_ttf is the thing you are searching for.

http://dotNet.lv                          mailto:emulynx at delfi.lv

More information about the SDL mailing list