-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
Fonts not embedded in PDF #1318
Comments
Hi! You can try to launch |
i did,
|
Could you try to remove the |
did that already... no change |
Well… Could you share your HTML file, so that I can try to reproduce? |
i made a stripped down version of the doc |
It works for me… I really don’t know what could go wrong without a warning in the logs :/. Another possible problem: do you have the latest version of tinycss2 (1.1.0)? Otherwise, |
nice to hear, but doesn't help me here :-) I installed using pip, seems up-to date?
|
and i tried on a completely different fedora33 machine, there weasyprint was installed as root (i know....) So... i assume this has something to do with fedora33 then? |
WeasyPrint doesn’t use Pycairo (it uses CairoCFFI instead).
It is.
OMG. I know. Fedora has updated Pango to 1.48.3 10 days ago, you need this fix: 47043a1. We’ll release (again) another 52.x version, because it will cause a lot of issues. Please let us know if it fixes your problem. Thanks a lot for the bug report, that’s really useful to know early that the new version of Pango has already been included in some distributions. @FelixSchwarz: you may be interested in this issue. Backporting 47043a1 or upgrading WeasyPrint to the next 52.x version looks like a good idea. (And for SemVer lovers: Pango 1.48.3 actually broke WeasyPrint. That’s not their fault, that’s not our fault.) |
@liZe Thanks for bringing this to my attention. I recently got an automated notification that WeasyPrint's test suite has even more test failures in Fedora but I did not have time to debug this. |
you're my hero!!! |
@slartibart70 if you are interested in helping out with Fedora's WeasyPrint, please let me know. ;-) Fedora uses very recent versions which means we spot problems (ideally) before/at the same time as upstream so fixing these is often upstream development. For example Fedora started to run test suites with Python 3.10 three months ago (and I have way too many bug reports about test failures with 3.10 waiting for me). |
@FelixSchwarz |
Hi,
i was using weasyprint 52.2 with python 3.8 on fedora32.
After upgrading to fedora33, my fonts are not embedded into the resulting pdf any more.
fedora33 uses python 3.9, i also upgraded to weasyprint 52.4... no change to the result.
What i did so far:
A pdf is generated, embedded fonts missing
same result, no fonts in pdf
My Html uses an external css with @font-face
e.g.
The browser has no problems rendering my embedded fonts, neither did weasyprint on fedora32/py3.8 (if that matters at all...)
So, my old working pdf output had these fonts (successfully embedded)
The new one has only these default fonts:
I had a (one!) font embedded into my pdf when using
with this font list:
Overriding with user styelsheets and
!important
cannot be the solution...I'm running out of ideas for now, any help?
The text was updated successfully, but these errors were encountered: