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

Skip to content

Commit 6d26054

Browse files
committed
Fix mapping regular font the StixSans when fontset is stixsans.
svn path=/trunk/matplotlib/; revision=6998
1 parent 7036531 commit 6d26054

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/mathtext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,8 @@ def _map_virtual_font(self, fontname, font_class, uniindex):
908908
# Handle these "fonts" that are actually embedded in
909909
# other fonts.
910910
mapping = stix_virtual_fonts.get(fontname)
911-
if self._sans and mapping is None:
911+
if (self._sans and mapping is None and
912+
fontname not in ('regular', 'default')):
912913
mapping = stix_virtual_fonts['sf']
913914
doing_sans_conversion = True
914915
else:

0 commit comments

Comments
 (0)