[SDL] A question about SDL_ttf

Mine mine260309 at gmail.com
Sat Sep 8 22:10:28 PDT 2007


Hi All,
    I'm using SDL_ttf to draw texts. It works perfect, but I don't know how
to show multiple lines of texts.
    For example, the text is "This is a sample \nJust a test". I expect it
shows the texts with two lines, but it just shows a blank for the '\n'. Does
SDL_ttf support showing a string with multiple lines?
    If no, and if I want to do this, what I think I can do is that, split
the string to several strings, create several SDL_Surface, and draw them at
the correct position. Is there any better way to implement this?
    Thanks.
-- 
俺たちが乗った列車は途中下車はできないんだ!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070909/500ad06e/attachment.html 


More information about the SDL mailing list