Skip to content

Commit 0ef2cd4

Browse files
committed
fallback to stix when dejavu returns .nodef symbol name
1 parent be43ee5 commit 0ef2cd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/mathtext.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,9 @@ def _get_glyph(self, fontname, font_class, sym, fontsize):
835835
if font is not None:
836836
try:
837837
glyphindex = font.get_char_index(uniindex)
838-
found_symbol = True
838+
symbol_name = font.get_glyph_name(glyphindex)
839+
if symbol_name != '.notdef':
840+
found_symbol = True
839841
except KeyError:
840842
pass
841843

0 commit comments

Comments
 (0)