Commit 76d8b3c
Type-1 subsetting
This reduces pdf file sizes when usetex is active, at the cost of
some complexity in the code. We implement a charstring bytecode
interpreter to keep track of subroutine calls in font programs.
Give dviread.DviFont a fake filename attribute and a get_fontmap
method for character tracking.
In backend_pdf.py, refactor _get_subsetted_psname so it calls a method
_get_subset_prefix, and reuse that to create tags for Type-1 fonts.
Mark the methods static since they don't use anything from the instance.
Recommend merging to main to give people time to test this, not to
a 3.10 point release.
Closes matplotlib#127.
Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>1 parent 2918b73 commit 76d8b3c
File tree
10 files changed
+536
-43
lines changed- doc/users/next_whats_new
- lib/matplotlib
- backends
- tests
- baseline_images/test_backend_pdf
10 files changed
+536
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments