Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f0d7f5

Browse files
aitikguptatacaswell
authored andcommitted
Reword sentences to be more formal
1 parent 8a01d90 commit 6f0d7f5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/users/explain/fonts.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Are we reinventing the wheel?
136136
Internally, a feasible response to the question of 'reinventing the
137137
wheel would be, well, Yes *and No*. The font-matching algorithm used
138138
by Matplotlib has been *inspired* by web browsers, more specifically,
139-
`CSS Specifications <http://www.w3.org/TR/1998/REC-CSS2-19980512/>`_!
139+
`CSS Specifications <http://www.w3.org/TR/1998/REC-CSS2-19980512/>`_.
140140

141141
Currently, the simplest way (and the only way) to tell Matplotlib what fonts
142142
you want it to use for your document is via the **font.family** rcParam,
@@ -146,7 +146,7 @@ This is similar to how one tells a browser to use multiple font families
146146
(specified in their order of preference) for their HTML webpages. By using
147147
**font-family** in their stylesheet, users can essentially trigger a very
148148
useful feature provided by browers, known as Font-Fallback. For example, the
149-
following snippet in an HTMl markup would:
149+
following snippet in an HTML markup would:
150150

151151
.. code-block:: html
152152

@@ -165,14 +165,15 @@ following snippet in an HTMl markup would:
165165
For every character/glyph in *"some text"*, the browser will iterate through
166166
the whole list of font-families, and check whether that character/glyph is
167167
available in that font-family. As soon as a font is found which has the
168-
required glyph(s), the browser moves on to the next character.
168+
required glyph(s), the browser uses that font to render that character, and
169+
subsequently moves on to the next character.
169170

170171
How does Matplotlib achieve this?
171172
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172-
Well, Matplotlib doesn't achieve this, *yet*. It was initially only designed to
173-
use a **single font** throughout the document, i.e., no matter how many
174-
families you pass to **font.family** rcParam, Matplotlib would use the very
175-
first font it's able to find on your system, and try to render all your
173+
Currently, Matplotlib can't render a multi-font document. It was initially
174+
only designed to use a **single font** throughout the document, i.e., no matter
175+
how many families you pass to **font.family** rcParam, Matplotlib would use the
176+
very first font it's able to find on your system, and try to render all your
176177
characters/glyphs from that *and only that* font.
177178

178179
.. note::

0 commit comments

Comments
 (0)