Skip to content

Commit b720325

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

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy