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)
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