[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Segmentation Fault creating font



> >>> import pygame
> >>> pygame.font.init()
> >>> f1 = pygame.font.Font(None, 14)
> >>> f2 = pygame.font.Font("arial.ttf", 10)
> Pygame Parachute Traceback:
>   File "<stdin>", line 1, in ?
> Fatal Python error: (pygame parachute) Segmentation Fault
> 
> This application has requested the Runtime to terminate it in an unusual
> way. Please contact the application's support team for more information.

Pygame cannot find the font unless you use a full path or copy the .ttf 
file to the same directory as your script. However, it should hardly 
segfault when the font file is not found. Have to wait on Pete's word on 
that.

--
Sami Hangaslammi