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:
150
150
* `ImageMagick <https://www.imagemagick.org/script/index.php >`_: for saving
151
151
animated gifs;
152
152
* `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.
154
156
155
157
FreeType and Qhull
156
158
------------------
Original file line number Diff line number Diff line change @@ -273,6 +273,10 @@ def _call_fc_list():
273
273
'This may take a moment.' ))
274
274
timer .start ()
275
275
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 []
276
280
out = subprocess .check_output (['fc-list' , '--format=%{file}\\ n' ])
277
281
except (OSError , subprocess .CalledProcessError ):
278
282
return []
You can’t perform that action at this time.
0 commit comments