Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4c8e73d

Browse filesBrowse files
authored
Merge pull request #16399 from meeseeksmachine/auto-backport-of-pr-16396-on-v3.2.x
Backport PR #16396 on branch v3.2.x (font_manager docs cleanup.)
2 parents fba292d + dfc8a0c commit 4c8e73d
Copy full SHA for 4c8e73d

File tree

Expand file treeCollapse file tree

1 file changed

+22
-22
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+22
-22
lines changed

‎lib/matplotlib/font_manager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/font_manager.py
+22-22Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
22
A module for finding, managing, and using fonts across platforms.
33
4-
This module provides a single :class:`FontManager` instance that can
5-
be shared across backends and platforms. The :func:`findfont`
4+
This module provides a single `FontManager` instance that can
5+
be shared across backends and platforms. The `findfont`
66
function returns the best TrueType (TTF) font file in the local or
7-
system font path that matches the specified :class:`FontProperties`
8-
instance. The :class:`FontManager` also handles Adobe Font Metrics
7+
system font path that matches the specified `FontProperties`
8+
instance. The `FontManager` also handles Adobe Font Metrics
99
(AFM) font files for use by the PostScript backend.
1010
1111
The design is based on the `W3C Cascading Style Sheet, Level 1 (CSS1)
@@ -569,29 +569,29 @@ class FontProperties:
569569
<http://www.w3.org/TR/1998/REC-CSS2-19980512/>`_ font
570570
specification. The six properties are:
571571
572-
- family: A list of font names in decreasing order of priority.
573-
The items may include a generic font family name, either
574-
'serif', 'sans-serif', 'cursive', 'fantasy', or 'monospace'.
575-
In that case, the actual font to be used will be looked up
576-
from the associated rcParam.
572+
- family: A list of font names in decreasing order of priority.
573+
The items may include a generic font family name, either
574+
'serif', 'sans-serif', 'cursive', 'fantasy', or 'monospace'.
575+
In that case, the actual font to be used will be looked up
576+
from the associated rcParam.
577577
578-
- style: Either 'normal', 'italic' or 'oblique'.
578+
- style: Either 'normal', 'italic' or 'oblique'.
579579
580-
- variant: Either 'normal' or 'small-caps'.
580+
- variant: Either 'normal' or 'small-caps'.
581581
582-
- stretch: A numeric value in the range 0-1000 or one of
583-
'ultra-condensed', 'extra-condensed', 'condensed',
584-
'semi-condensed', 'normal', 'semi-expanded', 'expanded',
585-
'extra-expanded' or 'ultra-expanded'
582+
- stretch: A numeric value in the range 0-1000 or one of
583+
'ultra-condensed', 'extra-condensed', 'condensed',
584+
'semi-condensed', 'normal', 'semi-expanded', 'expanded',
585+
'extra-expanded' or 'ultra-expanded'.
586586
587-
- weight: A numeric value in the range 0-1000 or one of
588-
'ultralight', 'light', 'normal', 'regular', 'book', 'medium',
589-
'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy',
590-
'extra bold', 'black'
587+
- weight: A numeric value in the range 0-1000 or one of
588+
'ultralight', 'light', 'normal', 'regular', 'book', 'medium',
589+
'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy',
590+
'extra bold', 'black'.
591591
592-
- size: Either an relative value of 'xx-small', 'x-small',
593-
'small', 'medium', 'large', 'x-large', 'xx-large' or an
594-
absolute font size, e.g., 12
592+
- size: Either an relative value of 'xx-small', 'x-small',
593+
'small', 'medium', 'large', 'x-large', 'xx-large' or an
594+
absolute font size, e.g., 12.
595595
596596
The default font property for TrueType fonts (as specified in the
597597
default rcParams) is ::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.