Comment 137 for bug 179988

Revision history for this message
Adrian Johnson (ajohnson-redneon) wrote : Re: [Bug 179988] Re: no printing from Windows

Rygle wrote:
> The bitmap thing seems to be falling back to a very low dpi. I have
> attached a ps file from the HP 4550 PS3 that seems to be falling back to
> about 75dpi. I can't set the resolution in this driver.

Looking at the patch there are a couple of things you can try:

+ surface = cairo_win32_printing_surface_create (hdc);
+ //cairo_surface_set_fallback_resolution (surface, x_dpi, y_dpi);
+
+ return surface;

Try uncommenting the call to cairo_surface_set_fallback_resolution() and
see what that does. Or try different fallback dpi values. However the
default fallback resolution in cairo is 300dpi so that may not be the
problem.

+
+ // ctx->setPSLevel(CAIRO_PS_LEVEL_3);
+ ctx->setTextToPath(false);
+ ctx->setFilterToBitmap(true);
+ ctx->setBitmapResolution(72);
+

I don't know what the ctx->setBitmapResolution(72) is for but you could
try changing that value or just comment it out in case there was already
a better default set.