diff --git a/lib/matplotlib/texmanager.py b/lib/matplotlib/texmanager.py index 6a43606c0bc5..078e1437e3ac 100644 --- a/lib/matplotlib/texmanager.py +++ b/lib/matplotlib/texmanager.py @@ -169,6 +169,8 @@ def __init__(self): ff = rcParams['font.family'] if len(ff) == 1 and ff[0].lower() in self.font_families: self.font_family = ff[0].lower() + elif ff.lower() in self.font_families: + self.font_family = ff.lower() else: mpl.verbose.report( 'font.family must be one of (%s) when text.usetex is True. '