8000 Merge pull request #13949 from Bharat123rox/fontfamily · matplotlib/matplotlib@c2bfa00 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2bfa00

Browse files
authored
Merge pull request #13949 from Bharat123rox/fontfamily
DOC: Add documentation to Text.set_fontfamily
2 parents efbd153 + 3adf507 commit c2bfa00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/text.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,11 @@ def set_fontfamily(self, fontname):
977977
name or a generic font class name. If the latter, the specific font
978978
names will be looked up in the corresponding rcParams.
979979
980+
If a `Text` instance is constructed with ``fontfamily=None``, then the
981+
font is set to :rc:`font.family`, and the
982+
same is done when `set_fontfamily()` is called on an existing
983+
`Text` instance.
984+
980985
Parameters
981986
----------
982987
fontname : {FONTNAME, 'serif', 'sans-serif', 'cursive', 'fantasy', \

0 commit comments

Comments
 (0)
0