Issue #177 resolved

Font issues on Mac

Anonymous created an issue

I'm running OS X 10.8.5 and I am encountering a few font errors when running my code with pygame. I currently have installed 32-bit Python 2.7 and the 32-bit pygame library. Here is my code: Here are the errors I am getting:

Comments (2)

  1. Lenard Lindstrom

    Yes, I encounter this bug on a PowerPC running OS X 10.4. The font search starts by checking for the fontconfig utility /usr/X11/bin/fc-list. If the file is missing — the directory /usr/X11 may actually be named /usr/X11R6 for instance — Pygame fails to set the variable fonts, causing the exception:

    UnboundLocalError: local variable 'fonts' referenced before assignment

    I have submitted a quick patch, changeset bf49fd02a920, to solve this.

  2. Log in to comment