Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68c3913 commit 0a80831Copy full SHA for 0a80831
lib/matplotlib/font_manager.py
@@ -945,7 +945,7 @@ class FontManager(object):
945
# Increment this version number whenever the font cache data
946
# format or behavior has changed and requires a existing font
947
# cache files to be rebuilt.
948
- __version__ = 201
+ __version__ = 300
949
950
def __init__(self, size=None, weight='normal'):
951
self._version = self.__version__
@@ -1333,7 +1333,8 @@ def findfont(prop, fontext='ttf'):
1333
1334
cachedir = get_cachedir()
1335
if cachedir is not None:
1336
- _fmcache = os.path.join(cachedir, 'fontList.json')
+ _fmcache = os.path.join(
1337
+ cachedir, 'fontlist-v{}.json'.format(FontManager.__version__))
1338
1339
fontManager = None
1340
0 commit comments