Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67b1cd6

Browse files
committed
textpath.py : delay _get_adobe_standard_encoding call until needed. Closes #405
1 parent 6a982b4 commit 67b1cd6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/matplotlib/textpath.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self):
3434

3535
self._texmanager = None
3636

37-
self._adobe_standard_encoding = self._get_adobe_standard_encoding()
37+
self._adobe_standard_encoding = None
3838

3939

4040
def _get_adobe_standard_encoding(self):
@@ -287,6 +287,9 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,
287287
if self.tex_font_map is None:
288288
self.tex_font_map = dviread.PsfontsMap(dviread.find_tex_file('pdftex.map'))
289289

290+
if self._adobe_standard_encoding is None:
291+
self._adobe_standard_encoding = self._get_adobe_standard_encoding()
292+
290293
fontsize = prop.get_size_in_points()
291294
if hasattr(texmanager, "get_dvi"): #
292295
dvifilelike = texmanager.get_dvi(s, self.FONT_SCALE)

0 commit comments

Comments
 (0)