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 b720325

Browse filesBrowse files
committed
Merge pull request #5439 from mdboom/default-font-fix
Use DejaVu Sans as default fallback font
1 parent 696ff9f commit b720325
Copy full SHA for b720325

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/font_manager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/font_manager.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ def __init__(self, size=None, weight='normal'):
10541054

10551055
for fname in self.ttffiles:
10561056
verbose.report('trying fontname %s' % fname, 'debug')
1057-
if fname.lower().find('vera.ttf')>=0:
1057+
if fname.lower().find('DejaVuSans.ttf')>=0:
10581058
self.defaultFont['ttf'] = fname
10591059
break
10601060
else:
@@ -1296,7 +1296,7 @@ def findfont(self, prop, fontext='ttf', directory=None,
12961296
return self.findfont(default_prop, fontext, directory, False)
12971297
else:
12981298
# This is a hard fail -- we can't find anything reasonable,
1299-
# so just return the vera.ttf
1299+
# so just return the DejuVuSans.ttf
13001300
warnings.warn(
13011301
'findfont: Could not match %s. Returning %s' %
13021302
(prop, self.defaultFont[fontext]),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.