Skip to content

Commit 70245b1

Browse files
committed
Always call find_tex_file for PsfontsMap.
It should work for absolute paths as well.
1 parent aa8e129 commit 70245b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/dviread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,9 @@ def _parse_and_cache_line(self, line):
939939

940940
if basename is None:
941941
basename = tfmname
942-
if encodingfile is not None and not encodingfile.startswith(b"/"):
942+
if encodingfile is not None:
943943
encodingfile = find_tex_file(encodingfile)
944-
if fontfile is not None and not fontfile.startswith(b"/"):
944+
if fontfile is not None:
945945
fontfile = find_tex_file(fontfile)
946946
self._parsed[tfmname] = PsFont(
947947
texname=tfmname, psname=basename, effects=effects,

0 commit comments

Comments
 (0)