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

[pygame] [Fwd: Undelivered Mail Returned to Sender]



It's been a week or so and I'm still getting these bounces - can we remove this guy from the list now, please?
Thanks,
-Luke
--- Begin Message ---
This is the Postfix program at host dahak.nimitz.net.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

			The Postfix program

<randy@xxxxxxxxxxxxxxxx>: can't create user output file
Reporting-MTA: dns; dahak.nimitz.net
X-Postfix-Queue-ID: 121A63009C
X-Postfix-Sender: rfc822; rabidpoobear@gmail.com
Arrival-Date: Sun,  8 Jul 2007 16:10:08 -0400 (EDT)

Final-Recipient: rfc822; randy@dahak.nimitz.net
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; can't create user output file
--- Begin Message ---
Ian Mallett wrote:
OK, that too bad. I don't suppose pygame has a suggestion box. (Other than that in the docs).
You could easily write a class that did multi-line text.
That's probably why it's not included in Pygame.
All the text processing you need to do - centering text, word-wrap, etc. - are all things you do yourself in python, and you pass the text for each line after it's been processed to the font rendering.
Part of the reason for this is probably because that's how SDL does it.
HTH,
-Luke

On 7/8/07, *Luke Paireepinart* < rabidpoobear@xxxxxxxxx <mailto:rabidpoobear@xxxxxxxxx>> wrote:

    Ian Mallett wrote:
    > New issue:  If I do something like:
    >
    > font = pygame.font.SysFont("Times New Roman", 12)
    > FontObject = font.render("""this is line 1
    > this is line 2
    > this is line 3""", 1, (255,255,255), (3,3,3))
    > surface.blit(FontObject, (0,0))
    >
    > instead of putting a newline thing it puts a rectangle and a
    space.  I
    > remember the docs saying to do it that way though...
    The font object's render method doesn't do newlines.
    It says that in the docs.
    You have to render each line of text seperately.
    -Luke




--- End Message ---

--- End Message ---