[SDL] A question about SDL_ttf

Jonathan Dearborn grimfang4 at hotmail.com
Sun Sep 9 11:31:13 PDT 2007


Hey,
 
You could also try my C++ font class here.  However, it uses bitmaps, so it's not TrueType.  It supports animation though.
 
Jonny D


Date: Sun, 9 Sep 2007 13:10:28 +0800From: mine260309 at gmail.comTo: sdl at lists.libsdl.orgSubject: [SDL] A question about SDL_ttfHi 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.-- °³¤¿¤Á¤¬\¤Ã¤¿ÁÐ܇¤Ï;ÖÐÏÂ܇¤Ï¤Ç¤­¤Ê¤¤¤ó¤À! 
_________________________________________________________________
Kick back and relax with hot games and cool activities at the Messenger Caf¨¦.
http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070909/824ab962/attachment.html 


More information about the SDL mailing list