pygame font issue

Quentin Bock qberz2005 at gmail.com
Sat Mar 13 10:20:59 EST 2021


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 direct file path of the font but that didn't
work, nor did using SysFont


More information about the Python-list mailing list