Skip to content

Commit b2e6451

Browse files
committed
Reword paragraph on subsetting
1 parent 2da9307 commit b2e6451

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

galleries/users_explain/text/fonts.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
| introduced by Adobe | terms of introduction | used commonly today, |
3737
| | | introduced by Apple |
3838
+--------------------------+----------------------------+----------------------------+
39-
| Restricted subset of | Full PostScript language, | Includes a virtual machine |
39+
| Restricted subset of | Full PostScript language, | Includes a virtual machine |
4040
| PostScript, charstrings | allows embedding arbitrary | that can execute code! |
4141
| are in bytecode | code (in theory, even | |
4242
| | render fractals when | |
@@ -88,11 +88,12 @@
8888
files, particularly with fonts with many glyphs such as those that support CJK
8989
(Chinese/Japanese/Korean).
9090
91-
The solution to this problem is to subset the fonts used in the document and
92-
only embed the glyphs actually used. This gets both vector text and small
93-
files sizes. Computing the font subset and writing the new
94-
(reduced) font are both complex problems and thus Matplotlib relies in most cases
95-
on `fontTools <https://fonttools.readthedocs.io/en/latest/>`__.
91+
To keep the output size reasonable while using vector fonts,
92+
Matplotlib embeds only the glyphs that are actually used in the document.
93+
This is known as font subsetting.
94+
Computing the font subset and writing the reduced font are both complex problems,
95+
which Matplotlib solves in most cases by using the
96+
`fontTools <https://fonttools.readthedocs.io/en/latest/>`__ library.
9697
9798
Core Fonts
9899
^^^^^^^^^^

0 commit comments

Comments
 (0)