[pygame] Segfault on loading font from StringIO

2012-01-01 Thread Radomir Dopieralski
Hello everyone, I'm having a problem loading a font file from a python file-like object. According to the documentation at http://www.pygame.org/docs/ref/font.html#pygame.font.Font this should be possible, however, I get a segmentation fault every time I pass a file-like object that is not

Re: [pygame] Segfault on loading font from StringIO

2012-01-01 Thread Zack Baker
Hi guys, could someone please give me the address I email to start a new thread because the one I keep trying to email is not working -Zack On Jan 1, 2012, at 5:50 AM, Radomir Dopieralski pyg...@sheep.art.pl wrote: Hello everyone, I'm having a problem loading a font file from a python

Re: [pygame] Segfault on loading font from StringIO

2012-01-01 Thread Russell Jones
I had a little play with this, and the following segfaults, too (on OS X 10.7 w/ Macports Python 2.7 and pygame 1.9.1) import pygame import io pygame.font.init() f = open(/opt/local/share/wine/fonts/symbol.ttf, r) font = pygame.font.Font(f, 8) # Works fine f.close() f =

[pygame] cx_Freeze and non-BMP images: my possible solution

2012-01-01 Thread Rastagong
Hi, I have been struggling for a while with cx_Freeze to have my Windows executables handle PNG images, and more generally non-BMP images. So far, I have always got the following error when I tried to load one: File is not a Windows BMP file. It seemed that a dependency was not correctly loaded