You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I've been testing weasyprint for creating PDFs from blog posts and noticed that the font ligatures disappeared when text is justified, then reappear when ragged right.
Output of weasyprint --info:
System: Linux
Machine: x86_64
Version: #1 SMP Wed Feb 19 06:37:35 UTC 2020
Release: 4.19.104-microsoft-standard
WeasyPrint version: 53.0
Python version: 3.8.10
Pydyf version: 0.0.3
Pango version: 14407
I tried reinstalling weasyprint and supporting libraries from scratch as well as tried installing the latest version. I'm using Ubuntu 20 on WSL. That shouldn't be affecting the results but I'm mentioning it in case it does.
I've tried web fonts and built-in fonts, same result. Sometimes spans, ems or marks in paragraph text do get ligatures, but only if the text in them is short, AFAICT.
I've put together a simple test page using a selection of open source fonts to show the issue:
So, I've been testing weasyprint for creating PDFs from blog posts and noticed that the font ligatures disappeared when text is justified, then reappear when ragged right.
You’re right, there’s a dirty bug. The bug is caused by the letter-space parameter being set, even if it’s 0, when the space between words is changed (and it is when the text is justified). It’s actually easy to fix, the hardest part will be to write a new unit test 😉.
We can expect a bug fix before the end of the week.
So, I've been testing weasyprint for creating PDFs from blog posts and noticed that the font ligatures disappeared when text is justified, then reappear when ragged right.
Output of
weasyprint --info
:I tried reinstalling weasyprint and supporting libraries from scratch as well as tried installing the latest version. I'm using Ubuntu 20 on WSL. That shouldn't be affecting the results but I'm mentioning it in case it does.
I've tried web fonts and built-in fonts, same result. Sometimes spans, ems or marks in paragraph text do get ligatures, but only if the text in them is short, AFAICT.
I've put together a simple test page using a selection of open source fonts to show the issue:
https://www.baldurbjarnason.com/weasytest/weasyprint-test.html
The output PDF using my install of weasyprint:
https://www.baldurbjarnason.com/weasytest/weasyprint-test.pdf
I've also zipped up the test site and attached to this issue.
weasytest.zip
Very curious to find out what is going on 😄 Maybe it's an issue with my version of Pango?
The text was updated successfully, but these errors were encountered: