8000 Merge pull request #16396 from anntzer/dedent-fontmanager · matplotlib/matplotlib@7b6eb77 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b6eb77

Browse files
authored
Merge pull request #16396 from anntzer/dedent-fontmanager
DOC: font_manager docs cleanup.
2 parents ae764ae + 4836d77 commit 7b6eb77

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

lib/matplotlib/font_manager.py

Lines 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