You need to initialize the font system with this line before you attempt to
load a font:
pygame.font.init()
Irv
> On Mar 13, 2021, at 8:11 AM, MRAB wrote:
>
> On 2021-03-13 15:20, Quentin Bock wrote:
>> Code that contains the problem:
>> score_value = 0
>> font = pygame.font.SysFont('
On 2021-03-13 15:20, Quentin Bock wrote:
Code that contains the problem:
score_value = 0
font = pygame.font.SysFont('freesansbold.ttf', 32)
error:
in font_constructor font = Font(fontpath, size)
pygame.error: font not initialized
Can someone explain why it's saying font not initialized and pro
Code that contains the problem:
score_value = 0
font = pygame.font.SysFont('freesansbold.ttf', 32)
error:
in font_constructor font = Font(fontpath, size)
pygame.error: font not initialized
Can someone explain why it's saying font not initialized and provide a
solution?
I have tried typing in the