Skip to content

Commit 1c6b168

Browse files
committed
centered font for long filenames
1 parent e20f3a4 commit 1c6b168

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/dropevent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def main():
2020
screen_size = (640, 480)
2121
surf = pygame.display.set_mode(screen_size)
2222
font = pygame.font.SysFont("Arial", 24)
23+
font.align = pygame.FONT_CENTER
2324
clock = pygame.Clock()
2425

2526
spr_file_text = font.render("Feed me some file or image!", 1, (255, 255, 255))

0 commit comments

Comments
 (0)