Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Satz Klauer
Hi, I try to print some vector data using GTK/Cairo. Unfortunately my printer only produces empty pages, means there is no print operation, the paper sheets are just moved. That's how I'm initialising everything: GtkPrintOperation *op; op = gtk_print_operation_new();

Re: Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Chris Vine
On Mon, 14 Oct 2013 19:34:53 +0200 Satz Klauer satzkla...@googlemail.com wrote: Hi, I try to print some vector data using GTK/Cairo. Unfortunately my printer only produces empty pages, means there is no print operation, the paper sheets are just moved. That's how I'm initialising

Re: Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Satz Klauer
I just want to draw a bunch of lines - simple polygons, no filling... On Mon, Oct 14, 2013 at 7:55 PM, Chris Vine ch...@cvine.freeserve.co.uk wrote: On Mon, 14 Oct 2013 19:34:53 +0200 Satz Klauer satzkla...@googlemail.com wrote: Hi, I try to print some vector data using GTK/Cairo.

Re: Re: Printing with gtk+, cairo and pango - need to iterate glyphsand problems with pango attributes

2009-07-15 Thread joel
I tried the code below on debian GNU/Linux unstable as well on win32. The output was a bit different but didn't work on both operating systems. #include gtk/gtk.h void begin_print(GtkPrintOperation *operation, GtkPrintContext *context) { gtk_print_operation_set_n_pages(operation, 1);

Re: Printing with gtk+, cairo and pango - need to iterate glyphsand problems with pango attributes

2009-07-15 Thread Behdad Esfahbod
I get the attached output which looks fine. Which versions of pango and cairo are you using on Linux? behdad On 07/15/2009 11:05 AM, j...@weedlight.ch wrote: I tried the code below on debian GNU/Linux unstable as well on win32. The output was a bit different but didn't work on both operating

Re: Re: Printing with gtk+, cairo and pango - need to iterate glyphs and problems with pango attributes

2009-07-15 Thread joel krähemann
No, the output isn't fine it shows only the last part of the text Title\nsecondary text\0 and the string 0123456789 isn't displayed at all. On debian GNU/Linux unstable: Name: Pango pango_module_version=1.6.0 Version: 1.24.4 Name: cairo Version: 1.8.8 Name: Pango Cairo

Re: Printing with gtk+, cairo and pango - need to iterate glyphs and problems with pango attributes

2009-07-15 Thread Behdad Esfahbod
1) pango_attr_size_new() takes size in pango units, so, replace: pango_attr_size_new(14) with pango_attr_size_new(14*PANGO_SCALE) 2) pango_layout_get_size() and pango_glyph_string_extents() returns sizes in pango units, so instead of multiplying by PANGO_SCALE you should be dividing by

Re: Printing with gtk+, cairo and pango - need to iterate glyphs and problems with pango attributes

2009-07-13 Thread Behdad Esfahbod
Uh, looks like may be a bug with our win32 backends. Can you try on Linux? behdad On 07/09/2009 08:07 AM, j...@weedlight.ch wrote: Hi I'm trying to print a form which I developed with gtk+. I developed it on m$ Vista with mingw and glade libraries from sourceforge.net. I didn't write it on

Printing with gtk+, cairo and pango - need to iterate glyphs and problems with pango attributes

2009-07-09 Thread joel
Hi I'm trying to print a form which I developed with gtk+. I developed it on m$ Vista with mingw and glade libraries from sourceforge.net. I didn't write it on GNU/Linux because it should run on win32. That's why I installed ghostscript and FreePDF to print to PDF to save toner and paper. I don't

Pango and Printing with GTK#

2008-04-20 Thread John M. Anderson
I'm trying to do some printing with a mix of pango and cairo within GTK#. My big issue right now is I can't find a way to reliable measure a font so I can figure out how many characters will fit inside the Layout so I can manage how many pages will need to be printed and wrap the text properly.

Re: Pango and Printing with GTK#

2008-04-20 Thread Behdad Esfahbod
On Sun, 2008-04-20 at 01:06 -0600, John M. Anderson wrote: I'm trying to do some printing with a mix of pango and cairo within GTK#. My big issue right now is I can't find a way to reliable measure a font so I can figure out how many characters will fit inside the Layout so I can manage how

Printing with gtk on windows

2005-07-21 Thread Razvan Gavril
I need to do some printing in a gtk application that runs on windows os and i can't find any starting point to look for documentation. Can anyone help me ? -- Razvan Gavril [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: Printing in GTK+

2004-10-19 Thread Carl B. Constantine
* Roger Leigh ([EMAIL PROTECTED]) wrote: Some of the recent (paid) work I've done with GTK+ has involved output to receipt printers for point of sale applications, where this sort of thing would have been quite useful. As it was, I just used normal pipes. And all the reporting used groff as

Re: Printing in GTK+

2004-10-16 Thread Owen Taylor
On Fri, 2004-10-15 at 22:53 +0100, Roger Leigh wrote: Owen Taylor [EMAIL PROTECTED] writes: On Thu, 2004-10-14 at 21:24 -0700, Todd Fisher wrote: What about a cross-platform method for printing? There's some discussion of possible GTK+ future printing interfaces in my GUADEC paper

Re: Printing in GTK+

2004-10-16 Thread Roger Leigh
Owen Taylor [EMAIL PROTECTED] writes: On Fri, 2004-10-15 at 22:53 +0100, Roger Leigh wrote: Owen Taylor [EMAIL PROTECTED] writes: There's some discussion of possible GTK+ future printing interfaces in my GUADEC paper: http://people.redhat.com/otaylor/guadec5/ I forgot to say thanks

Re: Printing in GTK+

2004-10-15 Thread Roger Leigh
Todd Fisher [EMAIL PROTECTED] writes: would printing to a spooler be cross platform? I mean would this process you describe be similar if I wanted to print in win32 as it is in Linux? Pass. I do know that you can open LPT1 etc. and print to them. It might go via the spooler. You might also

Re: Printing in GTK+

2004-10-15 Thread Roger Leigh
Russell Shaw [EMAIL PROTECTED] writes: Roger Leigh wrote: Your best bet is to use a spooler. This also makes networked operation totally transparent, and is far more flexible. You can use libcups, lpc or lpstat etc. to get a list of all available printers if the user needs to choose one.

Re: Printing in GTK+

2004-10-15 Thread Roger Leigh
Carl B. Constantine [EMAIL PROTECTED] writes: * Roger Leigh ([EMAIL PROTECTED]) wrote: Carl B. Constantine [EMAIL PROTECTED] writes: By a POS printer, I take that to mean a 40 col receipt printer sort of thing. These are basic devices which are basically ASCII thermal printers plus some

Re: Printing in GTK+

2004-10-15 Thread Owen Taylor
On Thu, 2004-10-14 at 21:24 -0700, Todd Fisher wrote: What about a cross-platform method for printing? There's some discussion of possible GTK+ future printing interfaces in my GUADEC paper: http://people.redhat.com/otaylor/guadec5/ I think a fairly simple printing interface does makes sense

Re: Printing in GTK+

2004-10-15 Thread Roger Leigh
Owen Taylor [EMAIL PROTECTED] writes: On Thu, 2004-10-14 at 21:24 -0700, Todd Fisher wrote: What about a cross-platform method for printing? There's some discussion of possible GTK+ future printing interfaces in my GUADEC paper: http://people.redhat.com/otaylor/guadec5/ I think a fairly

Re: Printing in GTK+

2004-10-15 Thread Todd Fisher
would printing to a spooler be cross platform? I mean would this process you describe be similar if I wanted to print in win32 as it is in Linux? thanks, todd Roger Leigh wrote: Carl B. Constantine [EMAIL PROTECTED] writes: I have some data I want to print out in my application. How do I do

Printing in GTK+

2004-10-14 Thread Carl B. Constantine
I have some data I want to print out in my application. How do I do it? To make things a little different, I *might* print to one of those POS type printers (USB) not a regular printer. Pointers? Which classes do I need to use? Thanks. -- .''`. Carl B. Constantine : :' : [EMAIL

Re: Printing in GTK+

2004-10-14 Thread Roger Leigh
Carl B. Constantine [EMAIL PROTECTED] writes: I have some data I want to print out in my application. How do I do it? To make things a little different, I *might* print to one of those POS type printers (USB) not a regular printer. Pointers? Which classes do I need to use? GTK+ itself

Re: Printing in GTK+

2004-10-14 Thread Russell Shaw
Roger Leigh wrote: Carl B. Constantine [EMAIL PROTECTED] writes: I have some data I want to print out in my application. How do I do it? To make things a little different, I *might* print to one of those POS type printers (USB) not a regular printer. Pointers? Which classes do I need to use?

Re: Printing in GTK+

2004-10-14 Thread Carl B. Constantine
* Roger Leigh ([EMAIL PROTECTED]) wrote: Carl B. Constantine [EMAIL PROTECTED] writes: I have some data I want to print out in my application. How do I do it? To make things a little different, I *might* print to one of those POS type printers (USB) not a regular printer. Pointers?

Re: Printing in GTK+

2004-10-14 Thread Igor Gorbounov
Carl B. Constantine wrote: * Roger Leigh ([EMAIL PROTECTED]) wrote: Carl B. Constantine [EMAIL PROTECTED] writes: I have some data I want to print out in my application. How do I do it? To make things a little different, I *might* print to one of those POS type printers (USB) not a regular

Re: Printing in GTK+

2004-10-14 Thread Todd Fisher
What about a cross-platform method for printing? -todd Igor Gorbounov wrote: Carl B. Constantine wrote: * Roger Leigh ([EMAIL PROTECTED]) wrote: Carl B. Constantine [EMAIL PROTECTED] writes: I have some data I want to print out in my application. How do I do it? To make things a little

Re: Printing in GTK+

2004-10-14 Thread Igor Gorbounov
Todd Fisher wrote: What about a cross-platform method for printing? -todd Perhaps, someone will port gnomeprint to other platforms? :-) Igor ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Printing in GTK+ environment

2003-07-14 Thread Igor Gorbounov
Hi, All! I need a hint about printing. I need some ways of printing for my plots (build by using GtkDrawingArea) and reports (build and viewed through GtkTreeView). No idea where to dig to... Hopefully, Igor Gorbounov ___ gtk-list mailing list

RE: [gtkmm] Printing in GTK+ environment

2003-07-14 Thread Murray . Cumming
From: Igor Gorbounov [mailto:[EMAIL PROTECTED] Hi, All! I need a hint about printing. I need some ways of printing for my plots (build by using GtkDrawingArea) and reports (build and viewed through GtkTreeView). No idea where to dig to... Hopefully, Igor Gorbounov I

Re: [gtkmm] Printing in GTK+ environment

2003-07-14 Thread Igor Gorbounov
[EMAIL PROTECTED] wrote: From: Igor Gorbounov [mailto:[EMAIL PROTECTED] Hi, All! I need a hint about printing. I need some ways of printing for my plots (build by using GtkDrawingArea) and reports (build and viewed through GtkTreeView). No idea where to dig to... Hopefully, Igor

RE: [gtkmm] Printing in GTK+ environment

2003-07-14 Thread Murray . Cumming
From: Igor Gorbounov [mailto:[EMAIL PROTECTED] I would investigate libgnomeprint and libgnomeprintui. So it's not wraped for C++ yet... Igor Gorbounov No, it's not. That should be quite easy to do, by looking at existing *mm projects. Murray Cumming [EMAIL PROTECTED] www.murrayc.com

Printing in GTK?

2002-07-16 Thread rhfreeman
Hi folks, Just need a bit of help here! I've got some GdkPixmaps in GTK 1.2 that I need to print out. I've looked into GdkMagicK but that doesn't seem to be being developed any further and also looking into using GIMP-print but that could be too complex for what I need. Does anyone else have