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

CAIRO_STATUS_WIN32_GDI_ERROR #377

Closed
o-sapov opened this issue Jan 31, 2023 · 2 comments
Closed

CAIRO_STATUS_WIN32_GDI_ERROR #377

o-sapov opened this issue Jan 31, 2023 · 2 comments

Comments

@o-sapov
Copy link

o-sapov commented Jan 31, 2023

On windows 10, python 3.8 I'm getting:

cairocffi.CairoError: cairo returned CAIRO_STATUS_WIN32_GDI_ERROR: b'error occurred in the Windows Graphics Device Interface'

When applying:

cairosvg.svg2pdf(
    url="file.svg", write_to="file.png")

Same on the command line.

cairosvg 2.6.0 pyhd8ed1ab_0 conda-forge

@liZe
Copy link
Member

liZe commented Jan 31, 2023

Hi!

Maybe there’s a problem with the fonts installed on your system. Is your setup a fresh Windows, or is it the computer you use for your daily work, or maybe a virtual machine?

If you could try the same code on another computer, or if you could try another (simple) SVG file, it would be helpful to find where the problem comes from.

@liZe
Copy link
Member

liZe commented Mar 18, 2024

It’s probably a bug in Cairo: https://gitlab.freedesktop.org/cairo/cairo/-/issues/530

@liZe liZe closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
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

2 participants