Skip to content
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 error when trying to run WeasyPrint #1339 #1463

Closed
AhmedSalam22 opened this issue Oct 6, 2021 · 9 comments
Closed

Fontconfig error when trying to run WeasyPrint #1339 #1463

AhmedSalam22 opened this issue Oct 6, 2021 · 9 comments

Comments

@AhmedSalam22
Copy link

I know this is dublicate topic but i don't know how to solve the issue
image

@liZe
Copy link
Member

liZe commented Oct 6, 2021

Hello.

Do you have the problem outside of VSCode? It may be the same problem as #1339 (comment).

@AhmedSalam22
Copy link
Author

@liZe thank you so much for reply
outside of VSCode give me this error
image

@liZe
Copy link
Member

liZe commented Oct 6, 2021

outside of VSCode give me this error

It means that you probably have different versions of Pango and/or Harfbuzz and/or FontConfig installed, and that they don’t work well together.

You should probably check that the path where GTK is installed is at the beginning of your PATH environment variable. If it is already at the beginning, then you could try to reinstall GTK. And if it doesn’t work, you’ll probably have to wait for #1435 to be closed.

@AhmedSalam22
Copy link
Author

@liZe
GTK is installed is at the beginning of PATH environment
image
try to reinstall GTK
image
it doesn’t work and the issue still the same so i have wait
image

@liZe
Copy link
Member

liZe commented Oct 14, 2021

Fontconfig’s configuration is supposed to be installed since tschoonj/GTK-for-Windows-Runtime-Environment-Installer#14:

https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/blob/1595c18695c42a6c1c0ba6e7accdaf2f216b9b3e/gtk-nsis-pack/copy-msys2-files.sh#L185-L188

What do you have in the etc/fonts folder (that’s in your GTK installation folder)?

@AhmedSalam22
Copy link
Author

@liZe
image

@liuyong888
Copy link

liuyong888 commented Oct 25, 2021

I almost broke down. My error messages were exactly the same.
image
image
Plz
@liZe

@liZe
Copy link
Member

liZe commented Oct 26, 2021

As there’s a configuration file, the problem probably comes from another version of Fontconfig installed elsewhere on your systems. If possible, you should try to remove this other version.

The real fix for this bug is to solve #1435. We can continue the discussion on that issue.

@liZe liZe closed this as completed Oct 26, 2021
@liuyong888
Copy link

As there’s a configuration file, the problem probably comes from another version of Fontconfig installed elsewhere on your systems. If possible, you should try to remove this other version.

The real fix for this bug is to solve #1435. We can continue the discussion on that issue.

Thanks for your reply, here I found the answer #1474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants