pygame.font.Font type error code example Example: pygame error font not initialized # imports pygame.init() # now use display and fonts