I installed the fink version of mpl on my 10.3.9 laptop the
> other day. I've not been able to work around font problems
> and am looking for suggestions. When I run "ipython -pylab"
> (GTKAgg backend) I get this traceback:
> line 456, in createFontDict font =
> ft2font.FT2Font(str(fpath)) RuntimeError: Could not load
> facefile /Library/Fonts/CharcoalCY.dfont;
> Unknown_File_Format
What version of matplotlib are you using. In recent versions we've
tried to me more friendly about catching exceptions, warning, and then
moving on, rather than failing. There are many mac ttf fonts that
fail and I don't know why (what version of freetype are you using?).
I suggest either upgrading to the most recent mpl which should be
tolerant of bad fonts.
If that doesn't work, you might want to look into the font_manager
module, and hack the font finding machinery to just return the mpl
system fonts (eg Vera*). If you search for
self.ttffiles = findSystemFonts(paths) + findSystemFonts()
you'll find the spot where the font search list is set and you could
manually hack this. We could provide an override setting for the
font manager in rc that says "just use such and such font dirs".
Let me know if any of this helps,
JDH