-
-
Notifications
You must be signed in to change notification settings - Fork 8.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kerning to single-byte strings in PDFs #19582
Conversation
|
Thanks for this! This changes 10 PDF tests, so those images will have to be updated. There is also a flake8 error. |
b30d609 to
08f03c1
Compare
|
The failing PDF tests were actually a string encoding issue on my side. I've fixed this now, and improved the code style. |
08f03c1 to
f179cce
Compare
f179cce to
b555611
Compare
|
Don't forget to mark this ready for review. |
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 to
4881758
Compare
4881758 to
1251563
Compare
…582-on-v3.4.x Backport PR #19582 on branch v3.4.x (Add kerning to single-byte strings in PDFs)
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).