10000 Merge pull request #27367 from StefRe/patch-4 · matplotlib/matplotlib@0d4cbee · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d4cbee

Browse files
authored
Merge pull request #27367 from StefRe/patch-4
Fix _find_fonts_by_props docstring
2 parents 0a4efbe + 43e0692 commit 0d4cbee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/font_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,10 +1339,10 @@ def _find_fonts_by_props(self, prop, fontext='ttf', directory=None,
13391339
-----
13401340
This is an extension/wrapper of the original findfont API, which only
13411341
returns a single font for given font properties. Instead, this API
1342-
returns a dict containing multiple fonts and their filepaths
1343-
which closely match the given font properties. Since this internally
1344-
uses the original API, there's no change to the logic of performing the
1345-
nearest neighbor search. See `findfont` for more details.
1342+
returns a list of filepaths of multiple fonts which closely match the
1343+
given font properties. Since this internally uses the original API,
1344+
there's no change to the logic of performing the nearest neighbor
1345+
search. See `findfont` for more details.
13461346
"""
13471347

13481348
prop = FontProperties._from_any(prop)

0 commit comments

Comments
 (0)
0