[cairo] artifacts when printing from windows

Adrian Johnson ajohnson at redneon.com
Fri Sep 5 14:41:06 PDT 2008

Dan McMahill wrote:
> Hello,
> I have some involvement with a project that uses gtk and cairo.  I have 
> noticed that when I print to a printer under windows I get some wierd 
> artifacts that do not show up on the screen, in pdf output, or when I 
> print to lpr under netbsd or linux.

This sounds like you are using the cairo_win32_surface for printing 
instead cairo_win32_printing_surface.

> I'm using cairo-1.6.4 on the windows build that is showing the problem.
> The code uses GtkPrint.
> Any thoughts on what might be going on?

There is a GTK+ bug[1] requesting that cairo_win32_printing_surface be 
used for printing on win32. This should be fixed in GTK+ 2.14.1 that was 
released yesterday.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=488833

More information about the cairo mailing list