Skip to content

Commit

Permalink
Fix #5998: Support fallback font correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Mar 22, 2016
1 parent c1aecd1 commit ae5fdf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
'rm', font_class, sym, fontsize)
else:
return self.cm_fallback._get_glyph(
fontname, 'it', sym, fontsize)
fontname, font_class, sym, fontsize)
else:
if fontname in ('it', 'regular') and isinstance(self, StixFonts):
return self._get_glyph('rm', font_class, sym, fontsize)
Expand Down

0 comments on commit ae5fdf7

Please sign in to comment.