From dd8e56512d3f94102aebb6daf124640ef99e47c6 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Sun, 8 Nov 2015 15:04:20 -0500 Subject: [PATCH] Use DejaVu Sans as default fallback font Since we no longer ship Vera --- lib/matplotlib/font_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index 2574d69ce8fb..46ce55ece54c 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -1074,7 +1074,7 @@ def __init__(self, size=None, weight='normal'): for fname in self.ttffiles: verbose.report('trying fontname %s' % fname, 'debug') - if fname.lower().find('vera.ttf')>=0: + if fname.lower().find('DejaVuSans.ttf')>=0: self.defaultFont['ttf'] = fname break else: @@ -1316,7 +1316,7 @@ def findfont(self, prop, fontext='ttf', directory=None, return self.findfont(default_prop, fontext, directory, False) else: # This is a hard fail -- we can't find anything reasonable, - # so just return the vera.ttf + # so just return the DejuVuSans.ttf warnings.warn( 'findfont: Could not match %s. Returning %s' % (prop, self.defaultFont[fontext]), 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