From: Paulo C. P. de A. <pau...@gm...> - 2013-01-16 15:38:46
|
2012/12/8 Paulo César Pereira de Andrade <pau...@gm...>: > 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. Thanks, Paulo |