From 89a314e9ee70f0598e228f6a896706517034aef1 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 30 Jul 2013 14:23:32 -0400 Subject: [PATCH] Fix font selection in texmanager --- lib/matplotlib/texmanager.py | 2 ++ 1 file changed, 2 insertions(+) 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. '