FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Type-1 font subsetting by jkseppan · Pull Request #20716 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pdf  (3) .py  (5) .pyi  (1) .rst  (1) .yml  (1) All 5 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ jobs:
python-version: '3.12'
# https://github.com/matplotlib/matplotlib/issues/29844
pygobject-ver: '<3.52.0'
- os: ubuntu-22.04
- name-suffix: "(Extra TeX packages)"
os: ubuntu-22.04
python-version: '3.13'
extra-packages: 'texlive-fonts-extra texlive-lang-cyrillic'
# https://github.com/matplotlib/matplotlib/issues/29844
pygobject-ver: '<3.52.0'
- name-suffix: "Free-threaded"
Expand Down Expand Up @@ -142,7 +144,8 @@ jobs:
texlive-latex-recommended \
texlive-luatex \
texlive-pictures \
texlive-xetex
texlive-xetex \
${{ matrix.extra-packages }}
if [[ "${{ matrix.name-suffix }}" != '(Minimum Versions)' ]]; then
sudo apt-get install -yy --no-install-recommends ffmpeg poppler-utils
fi
Expand Down
9 changes: 9 additions & 0 deletions doc/users/next_whats_new/type1_subset.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PDF files created with usetex now embed subsets of Type 1 fonts
---------------------------------------------------------------

When using the PDF backend with the usetex feature,
Matplotlib calls TeX to render the text and formulas in the figure.
The fonts that get used are usually "Type 1" fonts.
They used to be embedded in full
but are now limited to the glyphs that are actually used in the figure.
This reduces the size of the resulting PDF files.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This reads well to me. Thanks!

Loading

Back | FazBrowse Home | New Git URL