Hi,

  Recently I asked to become  comaintainer of matplotlib in Fedora and
did update to 1.2.0
for the upcoming f18 and rawhide.

  I am also working on an experimental sagemath package that I hope to
get in f19 and
make a backport to f18. One example of the font problem is:

--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---
$ sage -t  -force_lib "devel/sage/sage/geometry/cone.py"
sage -t -force_lib "devel/sage/sage/geometry/cone.py"
**********************************************************************
File "/usr/lib64/sagemath/devel/sage/sage/geometry/cone.py", line 930:
    sage: quadrant.plot()
Expected nothing
Got:
    doctest:1214: UserWarning: findfont: Font family ['STIXGeneral']
not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family
['STIXSizeOneSym'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family
['STIXSizeThreeSym'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family
['STIXSizeFourSym'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family
['STIXSizeFiveSym'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family
['STIXSizeTwoSym'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family
['STIXNonUnicode'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family ['cmb10'] not
found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family ['cmtt10'] not
found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family ['cmss10'] not
found. Falling back to Bitstream Vera Sans
    <BLANKLINE>
**********************************************************************
1 items had failures:
   1 of   5 in __main__.example_17
***Test Failed*** 1 failures.
For whitespace errors, see the file /home/pcpa/.sage/tmp/cone_4295.py
         [5.8 s]

----------------------------------------------------------------------
The following tests failed:


        sage -t -force_lib "devel/sage/sage/geometry/cone.py"
Total time for all tests: 5.9 seconds
--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---%<--%<---

  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

It "works", that is, is silent in f17, but it should be because f17
has stix fonts
1.0.0 and f18+ has stix-fonts 1.1.0. I am not sure how to correct it, so, an
experimental hack patch "to make it silent" is:
---%<---
--- /usr/lib64/python2.7/site-packages/matplotlib/mathtext.py.orig      
2012-12-08
15:16:23.959250860 -0200
+++ /usr/lib64/python2.7/site-packages/matplotlib/mathtext.py   2012-12-08
15:31:51.404286375 -0200
@@ -670,10 +670,7 @@
     """
     _fontmap = { 'cal' : 'cmsy10',
                  'rm'  : 'cmr10',
-                 'tt'  : 'cmtt10',
                  'it'  : 'cmmi10',
-                 'bf'  : 'cmb10',
-                 'sf'  : 'cmss10',
                  'ex'  : 'cmex10'
                  }

@@ -902,19 +899,9 @@

     - handles sized alternative characters for the STIXSizeX fonts.
     """
-    _fontmap = { 'rm'  : 'STIXGeneral',
-                 'it'  : 'STIXGeneral:italic',
-                 'bf'  : 'STIXGeneral:weight=bold',
-                 'nonunirm' : 'STIXNonUnicode',
-                 'nonuniit' : 'STIXNonUnicode:italic',
-                 'nonunibf' : 'STIXNonUnicode:weight=bold',
-
-                 0 : 'STIXGeneral',
-                 1 : 'STIXSizeOneSym',
-                 2 : 'STIXSizeTwoSym',
-                 3 : 'STIXSizeThreeSym',
-                 4 : 'STIXSizeFourSym',
-                 5 : 'STIXSizeFiveSym'
+    _fontmap = { 'rm'  : 'STIX:regular',
+                 'it'  : 'STIX:italic',
+                 'bf'  : 'STIX:weight=bold'
                  }
     use_cmex = False
     cm_fallback = False
---%<---

but this absolutely does not look right and proper to add to the f18+ matplotlib
package.

Any suggestion on how to properly correct it is welcome.

Thanks,
Paulo

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to