Skip to content

Commit 61abd44

Browse files
committed
Clarify doc and best practice
1 parent 84046cb commit 61abd44

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

examples/text_labels_and_annotations/font_family_rc_sgskip.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33
Configuring the font family
44
===========================
55
6-
You can explicitly set which font family is picked up for a given font
7-
style (e.g., 'serif', 'sans-serif', or 'monospace').
6+
You can explicitly set which font family is picked up, either by specifying
7+
family names of fonts installed on user's system, or generic-families
8+
(e.g., 'serif', 'sans-serif', 'monospace', 'fantasy' or 'cursive'),
9+
or a combination of both.
10+
(see :doc:`font tutorial </tutorials/text/text_props>`)
811
9-
In the example below, we only allow one font family (Tahoma) for the
10-
sans-serif font style. The default family is set with the font.family rcparam,
12+
In the example below, we are overriding the default sans-serif generic family
13+
to include a specific (Tahoma) font. (Note that the best way to achieve this
14+
would simply be to prepend 'Tahoma' in 'font.family')
15+
16+
The default family is set with the font.family rcparam,
1117
e.g. ::
1218
1319
rcParams['font.family'] = 'sans-serif'

0 commit comments

Comments
 (0)