8000 fix not found chars · matplotlib/matplotlib@23e04d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23e04d0

Browse files
committed
fix not found chars
1 parent 3610db1 commit 23e04d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/mathtext.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,9 @@ def _get_glyph(self, fontname, font_class, sym, fontsize):
833833
found_symbol = False
834834
font = self._get_font(new_fontname)
835835
if font is not None:
836-
try:
837-
glyphindex = font.get_char_index(uniindex)
836+
glyphindex = font.get_char_index(uniindex)
837+
if glyphindex != 0:
838838
found_symbol = True
839-
except KeyError:
840-
pass
841839

842840
if not found_symbol:
843841
if self.cm_fallback:

0 commit comments

Comments
 (0)
0