[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Good code for text wrapping?
Ah no, sorry. I didn't see the font/width part.
d
2008/9/16 Douglas Bagnall <douglas@xxxxxxxxxxxxxxx>:
>> The cookbook has this entry, but it doesn't work with new lines.
>> http://www.pygame.org/wiki/TextWrapping
>>
>> Anyone have any code like this that supports new lines?
>
> Batteries are included:
>
> http://docs.python.org/lib/module-textwrap.html
>
> does that help?
>
> Douglas
>