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.

Thanks,
Paulo

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

Reply via email to