I have a font called "pixelfont" that I would like to load onto my game. How can I load this font into pygame? I have tried the following method already:
import pygame
font_1_path = pygame.font.match_font("pixelfont", 0, 0)
font_1 = pygame.font.Font(font_1_path, 128)
text = font.render("Hello world!", True, (0, 0, 0))
display.blit(text, [0, 0])
Why does this not print out "Hello world!" in pixelfont?