File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,9 @@ etc., you can install the following:
150150* `ImageMagick <https://www.imagemagick.org/script/index.php >`_: for saving
151151 animated gifs;
152152* `LaTeX <https://miktex.org/ >`_ and `GhostScript (>=9.0)
153- <https://ghostscript.com/download/> `_ : for rendering text with LaTeX.
153+ <https://ghostscript.com/download/> `_ : for rendering text with LaTeX;
154+ * `fontconfig <https://www.fontconfig.org >`_ (>= 2.7): for detection of system
155+ fonts on Linux.
154156
155157FreeType and Qhull
156158------------------
Original file line number Diff line number Diff line change @@ -273,6 +273,10 @@ def _call_fc_list():
273273 'This may take a moment.' ))
274274 timer .start ()
275275 try :
276+ if b'--format' not in subprocess .check_output (['fc-list' , '--help' ]):
277+ _log .warning ( # fontconfig 2.7 implemented --format.
278+ 'Matplotlib needs fontconfig>=2.7 to query system fonts.' )
279+ return []
276280 out = subprocess .check_output (['fc-list' , '--format=%{file}\\ n' ])
277281 except (OSError , subprocess .CalledProcessError ):
278282 return []
You can’t perform that action at this time.
0 commit comments