From 5d3f8a7d6f4163a2cef3b04a3fe04aae99d487d2 Mon Sep 17 00:00:00 2001 From: Matt Hancock Date: Tue, 8 Dec 2015 20:37:27 -0500 Subject: [PATCH 1/2] Added warning message before fc-list command --- lib/matplotlib/font_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index 46ce55ece54c..4e5076d2da61 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -276,6 +276,7 @@ def get_fontconfig_fonts(fontext='ttf'): fontfiles = {} try: + warnings.warn('Running fc-list. This could take a few minutes.') pipe = subprocess.Popen(['fc-list', '--format=%{file}\\n'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) From d27527785a824ce8dfafbdc94522b26a96a756e2 Mon Sep 17 00:00:00 2001 From: Matt Hancock Date: Wed, 9 Dec 2015 19:27:29 -0500 Subject: [PATCH 2/2] Added warning message before fc-list command --- lib/matplotlib/font_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index 4e5076d2da61..ecb6ed8488be 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -276,7 +276,7 @@ def get_fontconfig_fonts(fontext='ttf'): fontfiles = {} try: - warnings.warn('Running fc-list. This could take a few minutes.') + warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.') pipe = subprocess.Popen(['fc-list', '--format=%{file}\\n'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)