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

Skip to content

Commit 6a5bc72

Browse files
committed
Remove get_font_config
1 parent 46260fe commit 6a5bc72

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import numpy as np
3232

3333
import matplotlib as mpl
34-
from matplotlib import _api, cbook, dviread
34+
from matplotlib import cbook, dviread
3535

3636
_log = logging.getLogger(__name__)
3737

@@ -105,15 +105,6 @@ def __new__(cls):
105105
Path(cls.texcache).mkdir(parents=True, exist_ok=True)
106106
return object.__new__(cls)
107107

108-
@_api.deprecated("3.6")
109-
def get_font_config(self):
110-
preamble, font_cmd = self._get_font_preamble_and_command()
111-
# Add a hash of the latex preamble to fontconfig so that the
112-
# correct png is selected for strings rendered with same font and dpi
113-
# even if the latex preamble changes within the session
114-
preambles = preamble + font_cmd + self.get_custom_preamble()
115-
return hashlib.md5(preambles.encode('utf-8')).hexdigest()
116-
117108
@classmethod
118109
def _get_font_family_and_reduced(cls):
119110
"""Return the font family name and whether the font is reduced."""

0 commit comments

Comments
 (0)