Hello,
font_manger.findSystemFonts() is broken on macOS in matplotlib 3.0
because the function OSXInstalledFonts() is broken. I was about to send
a patch but I see that the function is now deprecated. However, I think
it should be fixed in the 3.0.1 release. The patch is attached.
Cheers,
Dan
-------------- next part --------------
From fda67ab81b362d5a57f1c1a3f99766a50c7d5fb5 Mon Sep 17 00:00:00 2001
···
From: Daniele Nicolodi <daniele@grinta.net>
Date: Wed, 10 Oct 2018 19:23:22 -0600
Subject: [PATCH] Fix font_manager.OSXInstalledFonts()
Status: O
Content-Length: 690
Lines: 21
---
lib/matplotlib/font_manager.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py
index 37a0c7fc1..7a8f873f9 100644
--- a/lib/matplotlib/font_manager.py
+++ b/lib/matplotlib/font_manager.py
@@ -218,8 +218,7 @@ def OSXInstalledFonts(directories=None, fontext='ttf'):
directories = OSXFontDirectories
return [path
for directory in directories
- for ext in get_fontext_synonyms(fontext)
- for path in list_fonts(directory, ext)]
+ for path in list_fonts(directory, get_fontext_synonyms(fontext))]
@lru_cache()
--
2.15.2 (Apple Git-101.1)