Skip to content

Commit 0260760

Browse files
committed
Fix undefined method in dviread.Text.glyph_name_or_index
The method was removed in matplotlib#29939, but this call site was forgotten.
1 parent faf35f3 commit 0260760

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/dviread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def glyph_name_or_index(self):
121121
# control all involved versions and are deeply familiar with the
122122
# implementation", but a further mapping bug was fixed in luaotfload
123123
# commit 8f2dca4, first included in v3.23).
124-
entry = self._get_pdftexmap_entry()
124+
entry = PsfontsMap(find_tex_file("pdftex.map"))[self.font.texname]
125125
return (_parse_enc(entry.encoding)[self.glyph]
126126
if entry.encoding is not None else self.glyph)
127127

0 commit comments

Comments
 (0)