GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #127

New issue
Copy link
New issue
Copy link
Closed
#20716
Closed
When text.usetex=True with pdf backend, full subset of latex fonts is embedded into pdf file#127
#20716
Copy link
Assignees
jkseppan
Labels
MEP: MEP14text handlingtext handlingNew featurestatus: confirmed bugtopic: texttopic: text/usetex
Milestone
v3.11.0

Description

@jesenko
jesenko
opened on May 30, 2011
Issue body actions

Saving 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.

Activity

Next
  1. ghost assigned
    jkseppan
    on Aug 27, 2011
  2. jkseppan commented on Aug 27, 2011

    @jkseppan
    jkseppan
    on Aug 27, 2011
    Member
    More actions

    Needs Type1 subsetting, which is somewhat nontrivial. On my list of things to do eventually.

  3. tacaswell commented on Aug 18, 2014

    @tacaswell
    tacaswell
    on Aug 18, 2014
    Member
    More actions

    @jkseppan What is the state of this?

  4. tacaswell
    added this to the This milestone has been deleted milestone on Aug 18, 2014
  5. jkseppan commented on Aug 18, 2014

    @jkseppan
    jkseppan
    on Aug 18, 2014
    Member
    More actions

    Nothing yet. There's a plan for a larger-scope refactoring of text handling in MEP14 and that would help with subsetting too.

  6. tacaswell
    added
    MEP14
    on Aug 18, 2014
  7. petehuang commented on Jan 7, 2017

    @petehuang
    petehuang
    on Jan 7, 2017
    Contributor
    More actions

    Updating after a couple years again: same as last comment

  8. tacaswell
    modified the milestones: This milestone has been deleted, This milestone has been deleted on Sep 24, 2017
  9. jkseppan
    added
    topic: text/usetex
    on Jan 19, 2018
  10. jkseppan
    modified the milestones: This milestone has been deleted, This milestone has been deleted on Jan 19, 2018
  11. dstansby
    modified the milestones: v3.0, needs sorting on Jul 26, 2018
  12. jkseppan
    added a commit that references this issue on Jul 22, 2021

    Type-1 subsetting

    This issue will close once commit b66579d is merged into the 'main' branch.
    b66579d
  13. 16 remaining items

  14. jkseppan
    added 4 commits that reference this issue on May 12, 2025

    Type-1 subsetting

    This issue will close once commit bfa309c is merged into the 'main' branch.
    bfa309c

    Type-1 subsetting

    This issue will close once commit ca76667 is merged into the 'main' branch.
    ca76667

    Type-1 subsetting

    This issue will close once commit b9c87f1 is merged into the 'main' branch.
    b9c87f1

    Type-1 subsetting

    This issue will close once commit 1bc99cd is merged into the 'main' branch.
    1bc99cd
  15. jkseppan
    added 3 commits that reference this issue on May 29, 2025

    Type-1 subsetting

    This issue will close once commit 6053ca6 is merged into the 'main' branch.
    6053ca6

    Type-1 subsetting

    This issue will close once commit 413a4d9 is merged into the 'main' branch.
    413a4d9

    Type-1 subsetting

    This issue will close once commit 76d8b3c is merged into the 'main' branch.
    76d8b3c
  16. QuLogic
    added this to Font and text overhaulon Jun 5, 2025
  17. github-project-automation
    moved this to Waiting for other PR in Font and text overhaulon Jun 5, 2025
  18. QuLogic
    moved this from Waiting for other PR to In Progress in Font and text overhaulon Jun 5, 2025
  19. QuLogic
    closed this as completedin #20716on Jun 6, 2025
  20. github-project-automation
    moved this from In Progress to Done in Font and text overhaulon Jun 6, 2025
  21. QuLogic
    modified the milestones: future releases, v3.11.0 on Jun 6, 2025
  22. QuLogic
    removed
    keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Action
    on Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jkseppan
    jkseppan

Labels

MEP: MEP14text handlingtext handlingNew featurestatus: confirmed bugtopic: texttopic: text/usetex

Type

No type

Projects

  • Font and text overhaul
    Status
    Done
    Show more project fields

Milestone

  • v3.11.0

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.