Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Add kerning to single-byte strings in PDFs#19582
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for this! This changes 10 PDF tests, so those images will have to be updated. There is also a flake8 error. |
b30d609
to08f03c1
CompareThe failing PDF tests were actually a string encoding issue on my side. I've fixed this now, and improved the code style. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
08f03c1
tof179cce
CompareUh oh!
There was an error while loading.Please reload this page.
f179cce
tob555611
CompareDon't forget to mark this ready for review. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I agree with@QuLogic that we should use the new style for the new images.
Anyone can clear this.
b555611
to4881758
Compare4881758
to1251563
Compare…582-on-v3.4.xBackport PR#19582 on branch v3.4.x (Add kerning to single-byte strings in PDFs)
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
PR#18517 adds kerning to strings in PDFs if the string contains multi-byte chars. In case of strings consisting only of single-byte chars, the PDF output does not contains kerning (PDF operator
Tj
). This PR adds kerning to the single-byte case and adds the string using theTJ
operator. See also#19581.PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).