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

Skip to content

Commit 35db7dc

Browse files
committed
Kill FontManager.update_fonts.
It's been listed as a TODO since the first ever commit in the git log (e34a333), has always raised NotImplementedError, and nowadays the suggested action is always to just fully regenerate the font cache anyways.
1 parent eecd930 commit 35db7dc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/matplotlib/font_manager.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
# - default font algorithm needs improvement and testing
3030
# - setWeights function needs improvement
3131
# - 'light' is an invalid weight value, remove it.
32-
# - update_fonts not implemented
3332

3433
from functools import lru_cache
3534
import json
@@ -1018,14 +1017,6 @@ def set_default_weight(self, weight):
10181017
"""
10191018
self.__default_weight = weight
10201019

1021-
def update_fonts(self, filenames):
1022-
"""
1023-
Update the font dictionary with new font files.
1024-
Currently not implemented.
1025-
"""
1026-
# !!!! Needs implementing
1027-
raise NotImplementedError
1028-
10291020
# Each of the scoring functions below should return a value between
10301021
# 0.0 (perfect match) and 1.0 (terrible match)
10311022
def score_family(self, families, family2):

0 commit comments

Comments
 (0)