Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7dd6af5

Browse filesBrowse files
committed
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. Recommend merging to main to give people time to test this, not to a 3.10 point release. Give dviread.DviFont a fake filename attribute and a get_fontmap method for character tracking. Add type hints to the code this touches. Closes #127.
1 parent d7c4fb0 commit 7dd6af5
Copy full SHA for 7dd6af5

File tree

8 files changed

+477
-18
lines changed
Filter options

8 files changed

+477
-18
lines changed
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Type1Font.subset
2+
~~~~~~~~~~~~~~~~
3+
4+
``_type1font.Type1Font`` has a new ``subset`` method that creates a subset
5+
of the font comprising only the characters used. This is used by the PDF backend.
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Type 1 fonts are now subsetted in PDF output
2+
--------------------------------------------
3+
4+
When using the usetex feature with the PDF backend, Type 1 fonts are embedded
5+
in the PDF output. These fonts used to be embedded in full, but they are now
6+
subsetted to only include the glyphs that are actually used in the figure.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.