Skip to content

Commit 3c00570

Browse files
authored
Merge pull request matplotlib#28081 from meeseeksmachine/auto-backport-of-pr-28078-on-v3.9.x
Backport PR matplotlib#28078 on branch v3.9.x (Clarify that findfont & _find_fonts_by_props return paths.)
2 parents 2b58476 + 37fbeb8 commit 3c00570

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/font_manager.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ def score_size(self, size1, size2):
12351235
def findfont(self, prop, fontext='ttf', directory=None,
12361236
fallback_to_default=True, rebuild_if_missing=True):
12371237
"""
1238-
Find a font that most closely matches the given font properties.
1238+
Find the path to the font file most closely matching the given font properties.
12391239
12401240
Parameters
12411241
----------
@@ -1305,7 +1305,7 @@ def get_font_names(self):
13051305
def _find_fonts_by_props(self, prop, fontext='ttf', directory=None,
13061306
fallback_to_default=True, rebuild_if_missing=True):
13071307
"""
1308-
Find font families that most closely match the given properties.
1308+
Find the paths to the font files most closely matching the given properties.
13091309
13101310
Parameters
13111311
----------
@@ -1335,7 +1335,7 @@ def _find_fonts_by_props(self, prop, fontext='ttf', directory=None,
13351335
Returns
13361336
-------
13371337
list[str]
1338-
The paths of the fonts found
1338+
The paths of the fonts found.
13391339
13401340
Notes
13411341
-----

0 commit comments

Comments
 (0)