NEW: cross-platform print dialog
Using the Cairo renderer that was written for PDF and PS export, I've hooked up the GTK print dialog system. This provides Inkscape with a cross-platform printing dialog (finally).
In the past, we have had two methods of printing: vector and bitmap (for things that don't render correctly in PS). In the new print dialog, the "Rendering" tab exists to control this. In "Cairo" mode, it uses the Cairo renderer, and in "bitmap" mode it uses the PNG export code to populate a Cairo surface.
The bulk of the new code is in:
src/ui/widgets/rendering-options.* src/ui/dialog/print.* src/print.cpp
There is some strange behavior in bitmap mode (offset from origin) that I haven't narrowed down yet.
On Mon, Dec 10, 2007 at 12:17:14PM -0800, Kees Cook wrote:
Using the Cairo renderer that was written for PDF and PS export, I've hooked up the GTK print dialog system. This provides Inkscape with a cross-platform printing dialog (finally).
In the past, we have had two methods of printing: vector and bitmap (for things that don't render correctly in PS). In the new print dialog, the "Rendering" tab exists to control this. In "Cairo" mode, it uses the Cairo renderer, and in "bitmap" mode it uses the PNG export code to populate a Cairo surface.
Thanks Kees, good work!
There is some strange behavior in bitmap mode (offset from origin) that I haven't narrowed down yet.
Do you have a bug ID for this, that we can use to track it as we go on with release stuff?
Bryce
On Dec 10, 2007 4:17 PM, Kees Cook <kees@...62...> wrote:
Using the Cairo renderer that was written for PDF and PS export,
Are they the same? I thought the PS and PDF backends were separate. If so which one you use?
In the past, we have had two methods of printing: vector and bitmap (for things that don't render correctly in PS). In the new print dialog, the "Rendering" tab exists to control this. In "Cairo" mode, it uses the Cairo renderer, and in "bitmap" mode it uses the PNG export code to populate a Cairo surface.
I'd prefer not to expose technical jargon like "cairo" to the user. It means nothing to most users. Why not call it simply "vector" as opposed to "bitmap"?
Hi,
On Mon, Dec 10, 2007 at 04:54:16PM -0400, bulia byak wrote:
On Dec 10, 2007 4:17 PM, Kees Cook <kees@...62...> wrote:
Using the Cairo renderer that was written for PDF and PS export,
Are they the same? I thought the PS and PDF backends were separate. If so which one you use?
They both use the same renderer (a Cairo surface).
In the past, we have had two methods of printing: vector and bitmap (for things that don't render correctly in PS). In the new print dialog, the "Rendering" tab exists to control this. In "Cairo" mode, it uses the Cairo renderer, and in "bitmap" mode it uses the PNG export code to populate a Cairo surface.
I'd prefer not to expose technical jargon like "cairo" to the user. It means nothing to most users. Why not call it simply "vector" as opposed to "bitmap"?
That's fine by me -- I've adjusted it now. The dialog tab needs a little extra love too.
-Kees
I've just tried out the printing with the most current svn today, and, apart from incomplete rendering in vector mode, it seems to work fine for me.
However, I'm a bit confused by the dual dpi settings - there is one under the "Rendering" tab as well as one under the "Image Quality" tab. It's not clear what is affected by each setting as compared to the other. (Incidentally, the "Rendering" tab DPI setting arrow adjusters don't work for me - anyone else have that problem?)
Also, maybe until the vector rendering stuff gets fixed in Cairo it would be better to default to the bitmap option?
Otherwise, thanks!
JF
participants (4)
-
Bryce Harrington
-
bulia byak
-
Joshua Facemyer / Impressus Art
-
Kees Cook