Movatterモバイル変換


[0]ホーム

URL:


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

Prepare for {xe,lua}tex support in usetex.#29817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 3 commits intomatplotlib:mainfromanntzer:opentypedvi-prepare
Mar 27, 2025

Conversation

anntzer
Copy link
Contributor

@anntzeranntzer commentedMar 27, 2025
edited
Loading

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 intexdoc tftopl section 10 andtexdoc dvitype section 18.

PR summary

PR checklist

@anntzeranntzerforce-pushed theopentypedvi-prepare branch 2 times, most recently from38c33e6 tob49c6dcCompareMarch 27, 2025 15:07
@anntzeranntzer marked this pull request as ready for reviewMarch 27, 2025 15:07
DviFont.widths (the widths of each glyph in a font) is only usedby backend_pdf to embed (classic, Type1) TeX fonts; deprecate thatattribute and instead compute it where needed.  This change is inpreparation for supporting {xe,lua}tex, where DviFont can also refer toOpenType fonts which would be embedded via a different mechanism intothe pdf file, and which can contain so many glyphs that explicitlylisting the width of each one would be wasteful.
Dvi fixed-point values are in 12.20 format (12 bits before the decimalpoint, 20 bits after -- see e.g. the 20-bit bitshifts scattered in thedviread module), not 20.12.  Rename the helper function accordingly.
@QuLogicQuLogic added this to thev3.11.0 milestoneMar 27, 2025
See spec in `texdoc tftopl` section 10 and `texdoc dvitype` section 18.
@anntzer
Copy link
ContributorAuthor

Added a third doc-only commit.

@timhoffmtimhoffm merged commitb2b76d6 intomatplotlib:mainMar 27, 2025
39 of 41 checks passed
@anntzeranntzer deleted the opentypedvi-prepare branchMarch 28, 2025 08:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

3 participants
@anntzer@QuLogic@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp