URL:
<http://gna.org/task/?5485>
Summary: Switch from SDL_ttf to SDL_Pango
Project: Wormux
Submitted by: drayan
Submitted on: vendredi 28.09.2007 à 09:02
Should Start On: vendredi 28.09.2007 à 00:00
Should be Finished on: vendredi 28.09.2007 à 00:00
Category: game display
Priority: 3 - Low
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Pango is by far better compared to SDL_ttf. Actually, you can handle :
- multiple line
- text colorization
- multiple font rendering
- RTL languages (Hebrew, Persian)
A little demo is attached with a screenshot of the result.
The text used is the following one :
SDLPango_SetMarkup(context, "Using SDL Pango to render text <i>without</i>
having to <b>wonder</b> about <span foreground='#FF0000'>length</span>,
multiple lines etc. Even RTL languages like hebrew עברית", -1);
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: vendredi 28.09.2007 à 09:02 Name: pango-0.1.tar.gz Size: 240 ko
By: drayan
<http://gna.org/task/download.php?file_id=2999>
-------------------------------------------------------
Date: vendredi 28.09.2007 à 09:02 Name: pango.png Size: 11 ko By: drayan
<http://gna.org/task/download.php?file_id=3000>
_______________________________________________________
Reply to this item at:
<http://gna.org/task/?5485>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna