[Poppler-bugs] [Bug 39067] 0 width lines are too wide when printing

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 9 19:45:27 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39067

--- Comment #5 from Adrian Johnson <ajohnson at redneon.com> 2011-07-09 19:45:27 PDT ---
(In reply to comment #4)
> Is cairo_surface_get_fallback_resolution() a possible option here?
> 
> I'm not very familiar with cairo, but I'm assuming that cairo knows the
> resolution of whatever its drawing to.

Cairo does not know the resolution of the printers because it does not interact
directly with printers. It simply outputs a device independent PS or PDF file.

The problem with using the cairo fallback resolution to obtain the width of
zero width lines is the fallback resolution is intended for use with images.
Gtk+ sets the fallback resolution using the halftone screen frequency obtained
from the PPD file via CUPS. For example on my printer in 600dpi mode the number
of half tone cells per inch is 106. Not much different to the 72dpi currently
assumed by CairoOutputDev for zero width lines and still too thick to correctly
print the test case.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list