@@ -835,21 +835,21 @@ def get_sized_alternatives_for_symbol(self, fontname, sym):
835835 return [(fontname , sym )]
836836
837837class StixFonts (UnicodeFonts ):
838- _fontmap = { 'rm' : ( 'STIXGeneral' , 'otf' ) ,
839- 'tt' : ( 'VeraMono' , 'ttf' ) ,
840- 'it' : ( 'STIXGeneralItalic' , 'otf' ) ,
841- 'bf' : ( 'STIXGeneralBol' , 'otf' ) ,
842- 'sf' : ( 'Vera' , 'ttf' ) ,
843- 'nonunirm' : ( 'STIXNonUni' , 'otf' ) ,
844- 'nonuniit' : ( 'STIXNonUniIta' , 'otf' ) ,
845- 'nonunibf' : ( 'STIXNonUniBol' , 'otf' ) ,
838+ _fontmap = { 'rm' : 'STIXGeneral' ,
839+ 'tt' : 'VeraMono' ,
840+ 'it' : 'STIXGeneralItalic' ,
841+ 'bf' : 'STIXGeneralBol' ,
842+ 'sf' : 'Vera' ,
843+ 'nonunirm' : 'STIXNonUni' ,
844+ 'nonuniit' : 'STIXNonUniIta' ,
845+ 'nonunibf' : 'STIXNonUniBol' ,
846846
847- 0 : ( 'STIXGeneral' , 'otf' ) ,
848- 1 : ( 'STIXSiz1Sym' , 'otf' ) ,
849- 2 : ( 'STIXSiz2Sym' , 'otf' ) ,
850- 3 : ( 'STIXSiz3Sym' , 'otf' ) ,
851- 4 : ( 'STIXSiz4Sym' , 'otf' ) ,
852- 5 : ( 'STIXSiz5Sym' , 'otf' )
847+ 0 : 'STIXGeneral' ,
848+ 1 : 'STIXSiz1Sym' ,
849+ 2 : 'STIXSiz2Sym' ,
850+ 3 : 'STIXSiz3Sym' ,
851+ 4 : 'STIXSiz4Sym' ,
852+ 5 : 'STIXSiz5Sym'
853853 }
854854 fontmap = {}
855855 use_cmex = False
@@ -858,8 +858,8 @@ class StixFonts(UnicodeFonts):
858858 def __init__ (self , * args , ** kwargs ):
859859 TruetypeFonts .__init__ (self , * args , ** kwargs )
860860 if not len (self .fontmap ):
861- for key , ( name , ext ) in self ._fontmap .iteritems ():
862- fullpath = os .path .join (self .basepath , ext , name + "." + ext )
861+ for key , name in self ._fontmap .iteritems ():
862+ fullpath = os .path .join (self .basepath , 'ttf' , name + ".ttf" )
863863 self .fontmap [key ] = fullpath
864864 self .fontmap [name ] = fullpath
865865
0 commit comments