-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
unexpected justification #1023
Comments
Hello, and thank you for this issue. I can’t reproduce the bug 😒. Could you please give the output of |
Sure:
|
@liZe too bad that |
That’s why I should write tests for the features I add 😒. |
I’m pretty sure that it’s a duplicate of #1025, could you please try the current |
(Having line-break problems when using soft hyphens and justification, I really hope that it’s the same bug.) |
I'm afraid the problem still exists :( I have put the test file on-line for you convenience: https://zecer.elibri.com.pl/lte/unexpected-justification.html |
😢
Thanks, but it also works for me… I suppose that it’s a problem in older versions of Pango, I’ll try your version as soon as I can. |
I have the bug with your version of Pango. I’ll try various versions to know which one fixes the bug. |
It’s broken with 1.42.x versions too. |
Thank you checking. Can you give me a hint how to upgrade pango? |
It’s at least fixed with Pango 1.44.4. Older 1.44.x versions don’t compile anymore for me.
On Ubuntu, Pango is too old, even with the latest released version of Ubuntu. There’s a package in the next version you can try to install, but I suppose that upgrading only Pango can break your system (at least your graphical interface). If you don’t know how to get back to your version of Pango using your terminal, you shouldn’t try this. If it’s a virtual machine or anything you can break safely, you can try. This tutorial seems to be OK. You have to install the Pango package from the |
thank you for your advice :) using a virtual machine for testing seems to be the right idea. Thank you! |
@liZe - I finally have a new virtual machine:
As you wrote, the line is broken correctly, although there is no hyphen at the end of line. Could you please have a look at this? https://zecer.elibri.com.pl/lte/unexpected-justification.html |
I can reproduce, but I don’t have the problem with another font. Now trying to know why… |
OK, the problem comes from a line break that shouldn’t happen. For some reason (spoiler alert: a floating point rounding error), the hyphen that was fine during the layout doesn’t doesn’t fit during the display, and the line breaks after the (invisible) soft hyphen. @tomek1024 Could you please open a new issue with this problem? |
In very seldom cases (combination of margin values, text, text settings and fonts) weasyprint incorrectly breaks the line. I attach the source as well the result. I use manual hyphenation.
html:
CSS:
test.pdf
The text was updated successfully, but these errors were encountered: