Skip to content

Commit d6354b8

Browse files
committed
Merge pull request #5439 from mdboom/default-font-fix
Use DejaVu Sans as default fallback font
2 parents cdb40b4 + dd8e565 commit d6354b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/font_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ def __init__(self, size=None, weight='normal'):
10741074

10751075
for fname in self.ttffiles:
10761076
verbose.report('trying fontname %s' % fname, 'debug')
1077-
if fname.lower().find('vera.ttf')>=0:
1077+
if fname.lower().find('DejaVuSans.ttf')>=0:
10781078
self.defaultFont['ttf'] = fname
10791079
break
10801080
else:
@@ -1316,7 +1316,7 @@ def findfont(self, prop, fontext='ttf', directory=None,
13161316
return self.findfont(default_prop, fontext, directory, False)
13171317
else:
13181318
# This is a hard fail -- we can't find anything reasonable,
1319-
# so just return the vera.ttf
1319+
# so just return the DejuVuSans.ttf
13201320
warnings.warn(
13211321
'findfont: Could not match %s. Returning %s' %
13221322
(prop, self.defaultFont[fontext]),

0 commit comments

Comments
 (0)