-
Notifications
You must be signed in to change notification settings - Fork 523
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
Text alignment is broken for redact annotations (>=1.18.17) #1286
Comments
Accepted - typo. |
Thanks |
@JorjMcKie This is fixed for align = 0, expected left ✔️align = 1, expected center ✔️align = 2, expected right ✔️ |
Thank you very much for testing and confirming all this so thoroughly! |
Interesting, it seems the periods at the end of "words" weren't considered during the justification. Is that expected? If you use a textbox instead of a redact annotation and draw a rectangle with outline, you can see it. See screenshot below. align=3Also, should the text be vertically centered, similar to the redact annotation? I'm guessing no. |
Justified alignment has an error in |
Resolved in new version 1.19.0 which is currently being uploaded. |
Hello! This bug is re-introduced in the newer version |
Describe the bug (mandatory)
The
align
argument does not work as it should. Text within the textbox is always aligned left.To Reproduce (mandatory)
PyMuPDF>=1.18.17
Expected behavior (optional):
See here. In the code above, since
align=1
, the text should be centered in the redact annotation.Screenshots (optional)
Actual:
Expected:
Your configuration (mandatory)
debian 10
3.9.1
1.18.16
is the most recent release without this issue; I confirmed the issue for1.18.17
,1.18.18
, and1.18.19
.The text was updated successfully, but these errors were encountered: