Skip to content

Commit 748dc41

Browse files
authored
Use SysFont to load sysfontname (#304)
2 parents 2a17da8 + 5558077 commit 748dc41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pgzero/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def getfont(
273273
font = ptext._font_cache.get(key)
274274
if font:
275275
return font
276-
font = pygame.font.Font(fontname, fontsize)
276+
font = pygame.font.SysFont(sysfontname, fontsize)
277277
else:
278278
font = fonts.load(fontname, fontsize)
279279

0 commit comments

Comments
 (0)