Skip to content

Commit 89a314e

Browse files
committed
Fix font selection in texmanager
1 parent 4b95f88 commit 89a314e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/texmanager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ def __init__(self):
169169
ff = rcParams['font.family']
170170
if len(ff) == 1 and ff[0].lower() in self.font_families:
171171
self.font_family = ff[0].lower()
172+
elif ff.lower() in self.font_families:
173+
self.font_family = ff.lower()
172174
else:
173175
mpl.verbose.report(
174176
'font.family must be one of (%s) when text.usetex is True. '

0 commit comments

Comments
 (0)