On 01/16/2013 10:38 AM, Paulo César Pereira de Andrade wrote: > 2012/12/8 Paulo César Pereira de Andrade > <paulo.cesar.pereira.de.andr...@gmail.com>: >> Hi, >> >> Recently I asked to become comaintainer of matplotlib in Fedora and >> did update to 1.2.0 > [...] > >> doctest:1214: UserWarning: findfont: Font family ['STIXGeneral'] >> not found. Falling back to Bitstream Vera Sans > [...] > >> I opened two bug reports about it at: >> https://bugzilla.redhat.com/show_bug.cgi?id=885307 and >> https://bugzilla.redhat.com/show_bug.cgi?id=885312 > [...] > > I just did look at it again a bit more, and found that the solution is quite > simple. Just need the pseudo patch: > > ---%<--- > $ diff -u > /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py{.orig,} > --- /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py.orig > 2013-01-16 13:25:07.922646400 -0200 > +++ /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py > 2013-01-16 13:25:10.931646515 -0200 > @@ -62,7 +62,7 @@ > except ImportError: > import pickle > > -USE_FONTCONFIG = False > +USE_FONTCONFIG = True > > verbose = matplotlib.verbose > > ---%<--- > > I think this is safe to be made a patch for Linux distros. I believe this > could > be the default for *Linux and *BSD in matplotlib. > This will silence things, and I agree it probably should be the default on Linux, but I'm not sure if it's correct. If F18 really does have STIX 1.1, then it's not going to work since the layout of the fonts has changed so much. That's going to require a great deal of effort. Can you successfully run the test suite with this change? That should catch any glyph mismatch problems. Is there a way to have the package depend on 1.0 version of the fonts until matplotlib has a chance to update its tables?
Mike ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel