[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pull request #26: sysfont.py change for OS X 10.9 from Dan Ross



Hi,

I pushed a fix in for the 10.9 hang, and a note here: https://bitbucket.org/pygame/pygame/issue/179/need-to-update-system-font-lists-in

cheers,



On Wed, Jan 15, 2014 at 1:38 PM, Jason Marshall <jmm0@xxxxxxxxx> wrote:
Should we accept this change for pygame 1.9.2?
https://bitbucket.org/pygame/pygame/pull-request/26/removed-usage-of-fc-list-in-os-x-font/diff

Jason


lib/sysfont.py

def initsysfonts_darwin():
    """ read the fonts on OSX.
    """
    # if the X11 binary exists... try and use that.
    #  Not likely to be there on pre 10.4.x ...
    #    so still need to do other OSX specific method below.
-    if os.path.exists("/usr/X11/bin/fc-list"):
-        fonts = initsysfonts_unix()
-    else:
-        fonts = {}
+    # if os.path.exists("/usr/X11/bin/fc-list"):
+#         fonts = initsysfonts_unix()
+#     else:
+#         fonts = {}
+    fonts = {}
     
    # we look for the default paths.
    _search_osx_font_paths(fonts)

    return fonts