Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitb9c87f1
Type-1 subsetting
This reduces pdf file sizes when usetex is active, at the cost ofsome complexity in the code. We implement a charstring bytecodeinterpreter to keep track of subroutine calls in font programs.Give dviread.DviFont a fake filename attribute and a get_fontmapmethod 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 toa 3.10 point release.Closes#127.Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>1 parent6db18d5 commitb9c87f1
File tree
10 files changed
+533
-43
lines changed- doc/users/next_whats_new
- lib/matplotlib
- backends
- tests
- baseline_images/test_backend_pdf
10 files changed
+533
-43
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + |
0 commit comments
Comments
(0)