[9467] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Gtk+ and Printing
daemon@ATHENA.MIT.EDU (Alexander Larsson)
Wed Oct 21 11:44:09 1998
To: gtk-list@redhat.com
In-reply-to: Your message of "Wed, 21 Oct 1998 10:17:10 CDT."
<000101bdfd05$dfea9b00$1538040a@w9zzgwa.genam.com>
Date: Wed, 21 Oct 1998 17:38:36 +0200
From: Alexander Larsson <alla@lysator.liu.se>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
> Does any one have any advice on printing in Gtk+?
> I have stuff (mostly text, but with different fonts) that I'm drawing to a
> drawing area widget, and I want
> to print it. Should I generate PostScript code? Latex?
> Tex? Does gnome have anything that might help here?
Well, gnome currently have an printing api going, but if you don't want to
use that the normal way is to generate postscript.
If you're working on a GPL project you can use some code from by program
'Dia' (it's in the gnome cvs tree). It has an abstract 'Renderer' interface
with one implementation that draw to gtk-pixmaps/drawingareas and one that
generates postscript files. Other renderers can easily be written and plugged
in.
/ Alex
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null