Revision: 6998
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6998&view=rev
Author:   mdboom
Date:     2009-03-19 14:44:01 +0000 (Thu, 19 Mar 2009)

Log Message:
-----------
Fix mapping regular font the StixSans when fontset is stixsans.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/mathtext.py

Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2009-03-19 13:15:00 UTC (rev 
6997)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2009-03-19 14:44:01 UTC (rev 
6998)
@@ -908,7 +908,8 @@
         # Handle these "fonts" that are actually embedded in
         # other fonts.
         mapping = stix_virtual_fonts.get(fontname)
-        if self._sans and mapping is None:
+        if (self._sans and mapping is None and
+            fontname not in ('regular', 'default')):
             mapping = stix_virtual_fonts['sf']
             doing_sans_conversion = True
         else:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to