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

Skip to content

Commit 819f746

Browse files
committed
Merge pull request #6203 from mdboom/mathfonts
Fix #5998: Support fallback font correctly
1 parent f367f7b commit 819f746

23 files changed

Lines changed: 1 addition & 1 deletion

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
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
return self.cm_fallback._get_glyph(
858-
fontname, 'it', sym, fontsize)
858+
fontname, font_class, sym, fontsize)
859859
else:
860860
if fontname in ('it', 'regular') and isinstance(self, StixFonts):
861861
return self._get_glyph('rm', font_class, sym, fontsize)
169 Bytes
Loading
221 Bytes
Loading
37 Bytes
Loading
-1.03 KB
Loading
-1.14 KB
Loading
-313 Bytes
Loading
-377 Bytes
Loading
-647 Bytes
Loading
-58 Bytes
Loading

0 commit comments

Comments
 (0)