pyGame fonts

Noah Kantrowitz kantrn at rpi.edu
Thu Jan 17 13:31:13 EST 2008


On Jan 17, 2008, at 10:26 AM, Wade Brainerd wrote:

> Hi Ken, PyGame provides a font module which can render text onto a  
> surface.
...
>
> The _() around the text indicates that the string is to be  
> localized, it will be extracted and placed in a database by the  
> gettext utility.

The PyGame font system uses SDL_ttf, which can't handle much beyond  
simple Latin-1 characters. Lincoln wrote a wrapper for pango  
(olpcgames.pangofont) which uses more or less the same API as pygame's  
font system, but will handle almost any text you throw at it.

--Noah



More information about the Devel mailing list