GeezerVison is showing github.com — When text.usetex=True with pdf backend, full subset of latex fonts is embedded into pdf file · Issue #127 · matplotlib/matplotlib
When text.usetex=True with pdf backend, full subset of latex fonts is embedded into pdf file #127DescriptionSaving plots to pdf, using latex for font rendering (i.e. setting rcParams['text.usetex']=True) results in very large file size (~150kb for simple line plot with some mathematical latex expressions). This is due to all fonts being fully embedded into pdf.
When resulting pdf is postprocessed, so that only subset of fonts is embedded, file size is reduced drastically (e.g. from 150kb to 15kb).
The embedded fonts are of FontType=1.
Pdf backend should support embedding of subset of fonts when rcParams["text.usetex"]=True is used. Activityjkseppan commented on Aug 27, 2011 Needs Type1 subsetting, which is somewhat nontrivial. On my list of things to do eventually. tacaswell commented on Aug 18, 2014 added this to the This milestone has been deleted milestone on Aug 18, 2014jkseppan commented on Aug 18, 2014 Nothing yet. There's a plan for a larger-scope refactoring of text handling in MEP14 and that would help with subsetting too. petehuang commented on Jan 7, 2017 Updating after a couple years again: same as last comment modified the milestones: This milestone has been deleted, This milestone has been deleted on Sep 24, 2017modified the milestones: This milestone has been deleted, This milestone has been deleted on Jan 19, 2018added a commit that references this issue on Jul 22, 2021This issue will close once commit b66579d is merged into the 'main' branch.b66579d added 4 commits that reference this issue on May 12, 2025This issue will close once commit bfa309c is merged into the 'main' branch.bfa309c This issue will close once commit ca76667 is merged into the 'main' branch.ca76667 This issue will close once commit b9c87f1 is merged into the 'main' branch.b9c87f1 This issue will close once commit 1bc99cd is merged into the 'main' branch.1bc99cd added 3 commits that reference this issue on May 29, 2025This issue will close once commit 6053ca6 is merged into the 'main' branch.6053ca6 This issue will close once commit 413a4d9 is merged into the 'main' branch.413a4d9 This issue will close once commit 76d8b3c is merged into the 'main' branch.76d8b3c
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|