Yeah but in fact. I'm using Ocemp GUI and i refer to freesansbold which is
the default font indirectly. So maybe i can change the default font of
pygame? Or maybe i have to add freesansbold.ttf in Pygame cause it seems to
be missing :

the pygame.font.match_font('freesansbold') returns None

2011/5/8 David Burton <[email protected]>

> On Sun, May 8, 2011 at 1:56 PM, Nathan BIAGINI <[email protected]>wrote:
>
>> Hi everyone.
>>
>> The default font of Pygame seems to be missing... how can i solve it?
>>
>> RuntimeError: default font not found 'freesansbold.ttf'
>>
>>
>
> This is what I use:
>
> # 11 point Vera is a good font for menus and button labels
> try:
>     vera = pygame.font.Font('Vera.ttf', 11)
> except:
>     print('Warning: could not load "Vera.ttf" -- text will be ugly!')
>     vera = pygame.font.SysFont('arial,microsoftsansserif,courier', 13)
>
>
>

Reply via email to