Ligatures do not seem to render
See original GitHub issueHi, thanks for this software. Ligatures seemingly don’t render.
System: Windows 10 GTK: gtk3-runtime-3.24.24-2021-01-30-ts-win64.exe Python: Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] Version: WeasyPrint==52.2
HTML used to reproduce the bug:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
h1 {
font-family: "Calibri";
}
</style>
</head>
<body>
<h1>atib</h1>
</body>
</html>
weasyprint bug.html bug.pdf
output as rendered by SumatraPDF v3.2 64-bit (zoomed in):
Expected output (as rendered by Windows settings):
If I add font-variant-ligatures: none;
to the style, the full text renders, but the font is gone (I guess Calibri lacks a variant with no ligatures):
(As a side-note, I’m unable to display the generated .pdf
on Firefox, “This PDF document might not be displayed correctly.”, nor Acrobat Reader, “There was an error processing a page. There was a problem reading this document (114).”).
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
I can confirm that
pip install git+https://github.com/Kozea/WeasyPrint.git@2c919858c881d8d34eff7ba253e2c0462cb8da40#egg=WeasyPrint
gets rid of both this and the linked issue, thank you again.Okay, thank you for the quick resolution! I also posted a different error on that issue a few minutes ago caused by tables, but yeah, makes sense the Cairo version is buggy.