Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
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
jklymak commentedFeb 26, 2021
Thanks for this! This changes 10 PDF tests, so those images will have to be updated. There is also a flake8 error. |
b30d609 to08f03c1Comparesauerburger commentedMar 1, 2021
The 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 tof179cceCompareUh oh!
There was an error while loading.Please reload this page.
f179cce tob555611CompareQuLogic commentedMar 2, 2021
Don'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.
tacaswell left a comment
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 to4881758Compare4881758 to1251563Compare…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 theTJoperator. See also#19581.PR Checklist
pytestpasses).flake8on changed files to check).flake8-docstringsand 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).