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

Remove cutout for missing font file in PdfFile._embedTeXFont.#30036

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 1 commit intomatplotlib:mainfromanntzer:texnofont
May 12, 2025

Conversation

anntzer
Copy link
Contributor

If fontfile is None, an error would already have been raised earlier in dviFontName (which explicitly checks for this case).

(The cutout in _embedTeXFont was introduced first, ined0066f (2009), but support for that case appears to have been broken a bit later and the check in dviFontName was then introduced in4fcc0e7 (2016) where it simply improved the clarity of the exception ultimately raised. -- attn@jkseppan, who wrote both commits?)

Noted in relation to#29807.

PR summary

PR checklist

If fontfile is None, an error would already have been raised earlier indviFontName (which explicitly checks for this case).(The cutout in _embedTeXFont was introduced first, ined0066f (2009),but support for that case appears to have been broken a bit later andthe check in dviFontName was then introduced in4fcc0e7 (2016) where itsimply improved the clarity of the exception ultimately raised.)
Copy link
Member

@jkseppanjkseppan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Makes sense. Reasons for the font to not exist include the pdftexDownloadBase14 option mentioned in this warning and fonts that lack a Type-1 version. My guess is that both are very rare cases, and the error message currently raised is probably good enough.

@timhoffmtimhoffm merged commit6db18d5 intomatplotlib:mainMay 12, 2025
47 checks passed
@timhoffmtimhoffm added this to thev3.11.0 milestoneMay 12, 2025
@anntzeranntzer deleted the texnofont branchMay 13, 2025 05:59
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jkseppanjkseppanjkseppan 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@jkseppan@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp