SDL_ttf - How to wrap text?

Hi all,
Thanks to all those who anwered by last question, all feedback proved
usefull.

I am currently replacing an existing Font system with SDL_ttf, but the
only thing that appears to be missing is a function that will create a
text string wrapped PSDL_Surface, based on an SDL_Rect.

Does anyone have one of these already, before I embark on creating one?

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game instead;

I did this in Tux Paint. It works well for left-to-right languages, but
the one right-to-left language we’re supporting (Hebrew), comes out shaped
kind of funny.

        It looks

kind of like this.

Instead of looking
like this.

I hope that makes sense. ;^)

Tux Paint is GPL, you can find it at:
Tux Paint - Free art software for kids of all ages

It’s in C, by the way, but the concept should be pretty easy to figure out.
If you need help, feel free to e-mail me privately, on the SDL list (assuming
noone think it too off-topic) or on the Tux Paint Developers list.

-bill!
bill at newbreedsoftware.com New Breed Software
http://www.newbreedsoftware.com/ Tux Paint 0.9.14 – Coming soon!On Sat, Sep 18, 2004 at 11:46:10PM +0100, Dominique Louis wrote:

I am currently replacing an existing Font system with SDL_ttf, but the
only thing that appears to be missing is a function that will create a
text string wrapped PSDL_Surface, based on an SDL_Rect.

Does anyone have one of these already, before I embark on creating one?