There was an error while loading. Please reload this page.
2 parents d03e4ac + 51c4c05 commit 8d66b47Copy full SHA for 8d66b47
2 files changed
doc/api/next_api_changes/2018-08-17-AL-deprecations.rst
@@ -6,4 +6,5 @@ The following API elements are deprecated:
6
- ``get_py2exe_datafiles``, ``tk_window_focus``,
7
- ``backend_ps.PsBackendHelper``, ``backend_ps.ps_backend_helper``,
8
- ``cbook.iterable``,
9
+- ``font_manager.OSXInstalledFonts``,
10
- ``mlab.demean``,
lib/matplotlib/font_manager.py
@@ -207,6 +207,7 @@ def win32InstalledFonts(directory=None, fontext='ttf'):
207
return list(items)
208
209
210
+@cbook.deprecated("3.1")
211
def OSXInstalledFonts(directories=None, fontext='ttf'):
212
"""Get list of font files on OS X."""
213
if directories is None:
@@ -261,10 +262,9 @@ def findSystemFonts(fontpaths=None, fontext='ttf'):
261
262
fontfiles.update(win32InstalledFonts(fontext=fontext))
263
else:
264
fontpaths = X11FontDirectories
- fontfiles.update(get_fontconfig_fonts(fontext))
265
- # check for OS X & load its fonts if present
266
if sys.platform == 'darwin':
267
- fontfiles.update(OSXInstalledFonts(fontext=fontext))
+ fontpaths = [*X11FontDirectories, *OSXFontDirectories]
+ fontfiles.update(get_fontconfig_fonts(fontext))
268
269
elif isinstance(fontpaths, str):
270
fontpaths = [fontpaths]
0 commit comments