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
Fontconfig warning: line 5: unknown element "description" #1474
Comments
Hello! The amount of bugs reported lately by Windows users is insane, there’s definitely something wrong in the way WeasyPrint works and/or is documented for this platform. Maybe we should consider only supporting WSL… Your problem probably comes from a mismatch between the version of fontconfig and the version of the configuration files, as explained in this bug report and in many other issues on the web. How it’s possible? That’s a good question. Maybe there’s another version of fontconfig installed elsewhere on your system and used instead of GTK’s one. Maybe GTK’s version of fontconfig is used, but reads an old config file elsewhere. What you can do is to try to add an empty line before |
Hi LiZe, Best regards, |
Then this bug is a new duplicate of #1435, and you’ll have to wait for a real fix. Before that, you can try to use the same version libfontconfig.dll everywhere and see if it works. |
Thanks for the information. I will watch that issue. |
OK, then I’ll close this issue and we’ll continue the discussion in #1435. |
Hello Kozea,
I installed weasyprint today and got stuck on tackling a error:
This warning matters because it causes python crashes with "Process finished with exit code -1073741819 (0xC0000005)" .
It seems that the file:
"C:\Program Files\GTK3-Runtime Win64\etc\fonts\fonts.conf" cannot be read correctly. The tag description cannot be understood. Below are the first 5 lines in fonts.conf:
Even though I removed the line of "description", python still crashed.
What did I miss regarding the installation? Is there Anyone encountering the same problem?
Which program read fonts.conf?
I followed the instruction in here for windows
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation
My Enviroment:
Windows 10, Python Python 3.8.3 , GTK Installation by "gtk3-runtime-3.24.29-2021-04-29-ts-win64.exe"
Any responses would be very appreciated !
Thank you!
Best regards,
Yuan
The text was updated successfully, but these errors were encountered: