Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabe64db

Browse files
committed
Fix#5998: Support fallback font correctly
1 parentc1aecd1 commitabe64db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/mathtext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
855855
'rm',font_class,sym,fontsize)
856856
else:
857857
returnself.cm_fallback._get_glyph(
858-
fontname,'it',sym,fontsize)
858+
fontname,font_class,sym,fontsize)
859859
else:
860860
iffontnamein ('it','regular')andisinstance(self,StixFonts):
861861
returnself._get_glyph('rm',font_class,sym,fontsize)
@@ -887,12 +887,12 @@ class DejaVuFonts(UnicodeFonts):
887887

888888
def__init__(self,*args,**kwargs):
889889
# This must come first so the backend's owner is set correctly
890+
TruetypeFonts.__init__(self,*args,**kwargs)
890891
ifisinstance(self,DejaVuSerifFonts):
891892
self.cm_fallback=StixFonts(*args,**kwargs)
892893
else:
893894
self.cm_fallback=StixSansFonts(*args,**kwargs)
894895
self.bakoma=BakomaFonts(*args,**kwargs)
895-
TruetypeFonts.__init__(self,*args,**kwargs)
896896
self.fontmap= {}
897897
# Include Stix sized alternatives for glyphs
898898
self._fontmap.update({

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp