Re: [pygame] py2exe and pygame font causes segfaults

2008-12-30 Thread Jake b
On Tue, Dec 30, 2008 at 1:11 PM, Ian Mallett  wrote:

> Using the pygame default font in py2exe doesn't work for some reason.
> You'll have to include the file in your distribution yourself and use
> pygame.font.Font().  Also remember to include *all* your data files in the
> distr folder py2exe makes too.
>
> Ian
>
I heard about that, so before I posted I copied the ttf file into a
subdirectory relative my main.py script. ( its in
./data/ttf/freesandsbold.ttf )

And code:
self.font_path = os.path.join('.', 'data','ttf','freesansbold.ttf')
self.font = pygame.font.Font(self.font_path, 18)

And I get the parachute in my first post.
-- 
Jake


Re: [pygame] py2exe and pygame font causes segfaults

2008-12-30 Thread pymike
Because the Font path is in the Python/lib/site-packages/pygame dir, so if
Python isn't installed the font doesn't exist =)

On Tue, Dec 30, 2008 at 1:11 PM, Ian Mallett  wrote:

> Using the pygame default font in py2exe doesn't work for some reason.
> You'll have to include the file in your distribution yourself and use
> pygame.font.Font().  Also remember to include *all* your data files in the
> distr folder py2exe makes too.
>
> Ian
>



-- 
- pymike
"Python eggs me on."


Re: [pygame] py2exe and pygame font causes segfaults

2008-12-30 Thread Ian Mallett
Using the pygame default font in py2exe doesn't work for some reason.
You'll have to include the file in your distribution yourself and use
pygame.font.Font().  Also remember to include *all* your data files in the
distr folder py2exe makes too.

Ian