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 dd8e565

Browse filesBrowse files
committed
Use DejaVu Sans as default fallback font
Since we no longer ship Vera
1 parent 781540e commit dd8e565
Copy full SHA for dd8e565

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.