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

pdf: Simplify Type 3 font character encoding#30520

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

Conversation

QuLogic
Copy link
Member

PR summary

For a Type 3 font, its encoding is entirely defined by itsEncoding dictionary (which we create), so there's no reason to use a specific encoding likecp1252. Instead, switch to Latin-1, which corresponds exactly to the first 256 character codes in Unicode, and can be mapped directly withord.

Split out of#30512.

PR checklist

For a Type 3 font, its encoding is entirely defined by its `Encoding`dictionary (which we create), so there's no reason to use a specificencoding like `cp1252`. Instead, switch to Latin-1, which correspondsexactly to the first 256 character codes in Unicode, and can be mappeddirectly with `ord`.
@QuLogicQuLogic added this to thev3.11.0 milestoneSep 6, 2025
@github-project-automationgithub-project-automationbot moved this toWaiting for other PR inFont and text overhaulSep 6, 2025
@QuLogicQuLogic moved this fromWaiting for other PR toReady for Review inFont and text overhaulSep 6, 2025
@QuLogicQuLogic merged commitbb37cf9 intomatplotlib:text-overhaulSep 8, 2025
39 checks passed
@github-project-automationgithub-project-automationbot moved this fromReady for Review toDone inFont and text overhaulSep 8, 2025
@QuLogicQuLogic deleted the pdf-simplify-type3 branchSeptember 8, 2025 20:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
Status: Done
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@anntzer@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp