@@ -660,7 +660,6 @@ class BakomaFonts(TruetypeFonts):
660
660
661
661
def __init__ (self , * args , ** kwargs ):
662
662
self ._stix_fallback = StixFonts (* args , ** kwargs )
663
- self .name = "Computer Modern"
664
663
665
664
TruetypeFonts .__init__ (self , * args , ** kwargs )
666
665
self .fontmap = {}
@@ -866,8 +865,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
866
865
fname = g [0 ].family_name
867
866
if fname .startswith ("cm" ):
868
867
fname = "Computer Modern"
869
- _log .warning ("Substituting with a {} from {}" .format (sym , fname ))
870
- # or .postscript_name
868
+ _log .warning ("Substituting symbol {} from {}" .format (sym , fname ))
871
869
return g
872
870
873
871
else :
@@ -1004,7 +1002,6 @@ class StixFonts(UnicodeFonts):
1004
1002
def __init__ (self , * args , ** kwargs ):
1005
1003
TruetypeFonts .__init__ (self , * args , ** kwargs )
1006
1004
self .fontmap = {}
1007
- self .name = "STIX"
1008
1005
for key , name in self ._fontmap .items ():
1009
1006
fullpath = findfont (name )
1010
1007
self .fontmap [key ] = fullpath
@@ -1081,9 +1078,6 @@ class StixSansFonts(StixFonts):
1081
1078
A font handling class for the STIX fonts (that uses sans-serif
1082
1079
characters by default).
1083
1080
"""
1084
- def __init__ (self , * args , ** kwargs ):
1085
- StixFonts .__init__ (self , * args , ** kwargs )
1086
- self .name = "STIXSans"
1087
1081
_sans = True
1088
1082
1089
1083
0 commit comments