[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Good code for text wrapping?



ah, yes.  That's almost exactly what I want :)

If the width per character was fixed that could be used I think.


On Tue, Sep 16, 2008 at 12:23 PM, Douglas Bagnall
<douglas@xxxxxxxxxxxxxxx> wrote:
> 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
>>
>