Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7dd335e

Browse files
committed
minor stuff
1 parent d8e84d2 commit 7dd335e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ class BakomaFonts(TruetypeFonts):
660660

661661
def __init__(self, *args, **kwargs):
662662
self._stix_fallback = StixFonts(*args, **kwargs)
663-
self.name = "Computer Modern"
664663

665664
TruetypeFonts.__init__(self, *args, **kwargs)
666665
self.fontmap = {}
@@ -866,8 +865,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
866865
fname = g[0].family_name
867866
if fname.startswith("cm"):
868867
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))
871869
return g
872870

873871
else:
@@ -1004,7 +1002,6 @@ class StixFonts(UnicodeFonts):
10041002
def __init__(self, *args, **kwargs):
10051003
TruetypeFonts.__init__(self, *args, **kwargs)
10061004
self.fontmap = {}
1007-
self.name = "STIX"
10081005
for key, name in self._fontmap.items():
10091006
fullpath = findfont(name)
10101007
self.fontmap[key] = fullpath
@@ -1081,9 +1078,6 @@ class StixSansFonts(StixFonts):
10811078
A font handling class for the STIX fonts (that uses sans-serif
10821079
characters by default).
10831080
"""
1084-
def __init__(self, *args, **kwargs):
1085-
StixFonts.__init__(self, *args, **kwargs)
1086-
self.name = "STIXSans"
10871081
_sans = True
10881082

10891083

0 commit comments

Comments
 (0)