Commits

Lenard Lindstrom committed bf49fd0

Address issue #177 (untested)

In pygame.sysfont, this handles the OS X case where /usr/X11/bin/ft-list is
missing, leading to the unintended Python exception:

UnboundLocalError: local variable 'fonts' referenced before assignment

Comments (0)

Files changed (1)

     #    so still need to do other OSX specific method below.
     if os.path.exists("/usr/X11/bin/fc-list"):
         fonts = initsysfonts_unix()
+    else:
+        fonts = {}
     
     # we look for the default paths.
     _search_osx_font_paths(fonts)