8000 Fix bug in texmanager font-family parsing · matplotlib/matplotlib@c540dc4 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c540dc4

Browse files
committed
Fix bug in texmanager font-family parsing
1 parent f237a74 commit c540dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ 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:
172+
elif isinstance(ff, basestring) and ff.lower() in self.font_families:
173173
self.font_family = ff.lower()
174174
else:
175175
mpl.verbose.report(

0 commit comments

Comments
 (0)
0