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

Re: [pygame] File Copying



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...


On 7/7/07, Dave LeCompte (really) <dave@xxxxxxxxxxxx> wrote:
I just said:
> Win32's file handling handles certain characters specially: 0xff is
> interpreted as an end-of-file marker

Oops, forgive me on this. EOF is actually 0x1a, not 0xff.

See also:
http://mail.python.org/pipermail/python-list/2004-September/284028.html


-Dave LeCompte