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 — Prepare for {xe,lua}tex support in usetex. by anntzer · Pull Request #29817 · matplotlib/matplotlib

Conversation

@anntzer

@anntzer anntzer commented Mar 27, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Minor preparatory PRs for #29807:

  1. Move listing of Type1 glyph widths to backend_pdf:
    DviFont.widths (the widths of each glyph in a font) is only used
    by backend_pdf to embed (classic, Type1) TeX fonts; deprecate that
    attribute and instead compute it where needed. This change is in
    preparation for supporting {xe,lua}tex, where DviFont can also refer to
    OpenType fonts which would be embedded via a different mechanism into
    the pdf file, and which can contain so many glyphs that explicitly
    listing the width of each one would be wasteful.

  2. Rename the confusingly named dviread._mul2012:
    Dvi fixed-point values are in 12.20 format (12 bits before the decimal
    point, 20 bits after -- see e.g. the 20-bit bitshifts scattered in the
    dviread module), not 20.12. Rename the helper function accordingly.

  3. Clarify doc for Tfm.design_size.:
    See spec in texdoc tftopl section 10 and texdoc dvitype section 18.

PR summary

PR checklist

  • "closes #0000" is in the body of the PR description to link the related issue
  • new and changed code is tested
  • Plotting related features are demonstrated in an example
  • New Features and API Changes are noted with a directive and release note
  • Documentation complies with general and docstring guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@anntzer anntzer added the topic: text/usetex label Mar 27, 2025
@github-actions github-actions Bot added the backend: pdf label Mar 27, 2025
@anntzer
anntzer force-pushed the opentypedvi-prepare branch 2 times, most recently from 38c33e6 to b49c6dc Compare March 27, 2025 15:07
@anntzer
anntzer marked this pull request as ready for review March 27, 2025 15:07
@anntzer
anntzer force-pushed the opentypedvi-prepare branch from b49c6dc to f53d9ae Compare March 27, 2025 17:45
QuLogic
QuLogic reviewed Mar 27, 2025
View reviewed changes
Comment thread lib/matplotlib/dviread.pyi Resolved

Uh oh!

There was an error while loading. Please reload this page.

anntzer added 2 commits March 27, 2025 22:13
@anntzer
Move listing of Type1 glyph widths to backend_pdf.
cb5d039
DviFont.widths (the widths of each glyph in a font) is only used
by backend_pdf to embed (classic, Type1) TeX fonts; deprecate that
attribute and instead compute it where needed.  This change is in
preparation for supporting {xe,lua}tex, where DviFont can also refer to
OpenType fonts which would be embedded via a different mechanism into
the pdf file, and which can contain so many glyphs that explicitly
listing the width of each one would be wasteful.
@anntzer
Rename the confusingly named dviread._mul2012.
ae3d057
Dvi fixed-point values are in 12.20 format (12 bits before the decimal
point, 20 bits after -- see e.g. the 20-bit bitshifts scattered in the
dviread module), not 20.12.  Rename the helper function accordingly.
@anntzer
anntzer force-pushed the opentypedvi-prepare branch from f53d9ae to ae3d057 Compare March 27, 2025 21:14
@QuLogic QuLogic added this to the v3.11.0 milestone Mar 27, 2025
QuLogic
QuLogic approved these changes Mar 27, 2025
View reviewed changes
@anntzer
Clarify doc for Tfm.design_size.
c1dba8e
See spec in `texdoc tftopl` section 10 and `texdoc dvitype` section 18.
@anntzer

anntzer commented Mar 27, 2025

Copy link
Copy Markdown
Contributor Author

Added a third doc-only commit.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

timhoffm
timhoffm approved these changes Mar 27, 2025
View reviewed changes
@timhoffm
timhoffm merged commit b2b76d6 into matplotlib:main Mar 27, 2025
@anntzer
anntzer deleted the opentypedvi-prepare branch March 28, 2025 08:39
@anntzer anntzer mentioned this pull request Apr 1, 2025
Multivariate plotting in imshow, pcolor and pcolormesh #29221
Closed
2 of 5 tasks
@QuLogic QuLogic added this to Font and text overhaul Jun 5, 2025
@QuLogic QuLogic moved this to Done in Font and text overhaul Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@QuLogic QuLogic QuLogic approved these changes
@timhoffm timhoffm timhoffm approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

backend: pdf topic: text/usetex

Projects

Font and text overhaul
Status: Done

Milestone

v3.11.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@anntzer @QuLogic @timhoffm
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.