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

Sign up
Appearance settings

Commit 7c49d52

Browse files
authored
Merge pull request matplotlib#20716 from jkseppan/type1-subset
Type-1 font subsetting
2 parents 01e919a + d5ab3b0 commit 7c49d52

File tree

11 files changed

+548
-61
lines changed

11 files changed

+548
-61
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ jobs:
6464
python-version: '3.12'
6565
# https://github.com/matplotlib/matplotlib/issues/29844
6666
pygobject-ver: '<3.52.0'
67-
- os: ubuntu-22.04
67+
- name-suffix: "(Extra TeX packages)"
68+
os: ubuntu-22.04
6869
python-version: '3.13'
70+
extra-packages: 'texlive-fonts-extra texlive-lang-cyrillic'
6971
# https://github.com/matplotlib/matplotlib/issues/29844
7072
pygobject-ver: '<3.52.0'
7173
- name-suffix: "Free-threaded"
@@ -142,7 +144,8 @@ jobs:
142144
texlive-latex-recommended \
143145
texlive-luatex \
144146
texlive-pictures \
145-
texlive-xetex
147+
texlive-xetex \
148+
${{ matrix.extra-packages }}
146149
if [[ "${{ matrix.name-suffix }}" != '(Minimum Versions)' ]]; then
147150
sudo apt-get install -yy --no-install-recommends ffmpeg poppler-utils
148151
fi
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
PDF files created with usetex now embed subsets of Type 1 fonts
2+
---------------------------------------------------------------
3+
4+
When using the PDF backend with the usetex feature,
5+
Matplotlib calls TeX to render the text and formulas in the figure.
6+
The fonts that get used are usually "Type 1" fonts.
7+
They used to be embedded in full
8+
but are now limited to the glyphs that are actually used in the figure.
9+
This reduces the size of the resulting PDF files.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /