Revision: 4132
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4132&view=rev
Author:   mdboom
Date:     2007-11-06 11:39:23 -0800 (Tue, 06 Nov 2007)

Log Message:
-----------
Converted STIX fonts from otf to ttf.

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

Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2007-11-06 19:38:57 UTC (rev 
4131)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2007-11-06 19:39:23 UTC (rev 
4132)
@@ -835,21 +835,21 @@
         return [(fontname, sym)]
 
 class StixFonts(UnicodeFonts):
-    _fontmap = { 'rm'  : ('STIXGeneral', 'otf'),
-                 'tt'  : ('VeraMono', 'ttf'),
-                 'it'  : ('STIXGeneralItalic', 'otf'),
-                 'bf'  : ('STIXGeneralBol', 'otf'),
-                 'sf'  : ('Vera', 'ttf'),
-                 'nonunirm' : ('STIXNonUni', 'otf'),
-                 'nonuniit' : ('STIXNonUniIta', 'otf'),
-                 'nonunibf' : ('STIXNonUniBol', 'otf'),
+    _fontmap = { 'rm'  : 'STIXGeneral',
+                 'tt'  : 'VeraMono',
+                 'it'  : 'STIXGeneralItalic',
+                 'bf'  : 'STIXGeneralBol',
+                 'sf'  : 'Vera',
+                 'nonunirm' : 'STIXNonUni',
+                 'nonuniit' : 'STIXNonUniIta',
+                 'nonunibf' : 'STIXNonUniBol',
                  
-                 0 : ('STIXGeneral', 'otf'),
-                 1 : ('STIXSiz1Sym', 'otf'),
-                 2 : ('STIXSiz2Sym', 'otf'),
-                 3 : ('STIXSiz3Sym', 'otf'),
-                 4 : ('STIXSiz4Sym', 'otf'),
-                 5 : ('STIXSiz5Sym', 'otf')
+                 0 : 'STIXGeneral',
+                 1 : 'STIXSiz1Sym',
+                 2 : 'STIXSiz2Sym',
+                 3 : 'STIXSiz3Sym',
+                 4 : 'STIXSiz4Sym',
+                 5 : 'STIXSiz5Sym'
                  }
     fontmap = {}
     use_cmex = False
@@ -858,8 +858,8 @@
     def __init__(self, *args, **kwargs):
         TruetypeFonts.__init__(self, *args, **kwargs)
         if not len(self.fontmap):
-            for key, (name, ext) in self._fontmap.iteritems():
-                fullpath = os.path.join(self.basepath, ext, name + "." + ext)
+            for key, name in self._fontmap.iteritems():
+                fullpath = os.path.join(self.basepath, 'ttf', name + ".ttf")
                 self.fontmap[key] = fullpath
                 self.fontmap[name] = fullpath
 


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to