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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy