Loading font with wrong font style results in hang-up

Issue #197 new
Dominic Kexel
created an issue

When you try to a load a system font that only has a italic font style without setting the italic flag, pygame hangs up.

# 'Brush Script' is a windows standard font that comes only with the italic font style

# pygame hangs up
font = pygame.font.SysFont("Brush Script", 20)

# everything is fine
font = pygame.font.SysFont("Brush Script", 20, italic=True)

Comments (2)

  1. Log in to comment