RE: GtkPrintOperation and margins



Another bug that I noticed whilst working on this is that I initially tried
to work in pixels rather than inches, so I tried to extract the print margin
size in pixels by:

    margin = gtk_page_setup_get_top_margin(pageSetup, GTK_UNIT_PIXEL);

And with a 1" top margin this returned the value 72. With a 300dpi printer
that should have returned 300 - it has actually returned the point size
rather than pixel size (as if I'd called it with GTK_UNIT_POINT).

I will submit a bug report on this too if thats not already been done.







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]