Font problems w/ mpl, fink, ttf

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

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 ...

    > What version of matplotlib are you using.

According to fink I am using

    matplotlib-py24 0.84-2
    freetype219 2.1.9-1
    freetype219-shlibs 2.1.9-1

The -1 and -2 are presumably fink package numbers.

    > I suggest either upgrading to the most recent mpl which should be
    > tolerant of bad fonts.

Unfortunately, I think I'm as up-to-date as I can get, right?

    > 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".

Thanks, I'll check into this this evening...

Skip