Commits

illume committed 6abd31f

fix for infinite loop in SysFont. Thanks Regis Desgroppes.

  • Participants
  • Parent commits df4fecc

Comments (0)

Files changed (1)

File lib/sysfont.py

                 while not fontname:
                     plainname = styles.get((False, False))
                     fontname = styles.get((bold, italic))
-                    if plainname != fontname:
+                    if not fontname:
+                        fontname = plainname
+                    elif plainname != fontname:
                         gotbold = bold
                         gotitalic = italic
                     elif not fontname: