printing under unix (gtk+)
printing under unix has always been a cause of problems as unix
does not provide a standard way to display text and graphics
on screen and print it to a printer using the same application
programming interface - instead, displaying on screen is done
via the x11 library while printing has to be done with using
postscript commands. this was particularly difficult to handle
for the case of fonts with the result that only a selected
number of application could offer wysiwyg under unix. equally,
wxwidgets offered its own printing implementation using postscript
which never really matched the screen display.
starting with version 2.8.x, the gnome project provides printing
support through the libgnomeprint and libgnomeprintui libraries
by which especially the font problem is mostly solved. beginning
with version 2.5.4, the gtk+ port of wxwidgets can make use of
these libraries if wxwidgets is configured accordingly and if the
libraries are present. you need to configure wxwidgets with the
configure --with-gnomeprint switch and your application will
then search for the gnome print libraries at runtime. if they
are found, printing will be done through these, otherwise the
application will fall back to the old postscript printing code.
note that the application will not require the gnome print libraries
to be installed in order to run (there will be no dependency on
these libraries).
in version gtk+ 2.10, support for printing has been added to gtk+
itself. support for this has been added to wxwidgets in the
development branch and it will be available for wxwidgets 3.0.
|