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 wrote: > On Mon, 14 Oct 2013 19:34:53 +0200 > Satz Klauer wrote: > >> Hi, >> >> I try to print some vector data using GTK/Cairo. Unfortunately my >> printer only produces empty page

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 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 everything: > > GtkPrintO

Re: Printing GtkTextView contents

2013-08-23 Thread John Coppens
On Tue, 20 Aug 2013 15:25:23 -0700 (PDT) Marco Ricci wrote: > Is there a way by which I can query for the printer and use the results of > the query to send the contents of the GtkTextView? Can someone please point > me to a small example that does what I describe? I program using C on Linux.

Re: printing gtktextview and text layout

2008-04-18 Thread Behdad Esfahbod
On Fri, 2008-04-18 at 17:30 +0200, Philippe Rouquier wrote: > > Le mardi 15 avril 2008 à 15:05 -0400, Behdad Esfahbod a écrit : > > On Sat, 2008-04-12 at 11:08 +0200, Philippe Rouquier wrote: > > > > > > Could someone help me with that please? > > > > Just reorder your code to use pango_cairo_s

Re: printing gtktextview and text layout

2008-04-18 Thread Philippe Rouquier
Le mardi 15 avril 2008 à 15:05 -0400, Behdad Esfahbod a écrit : > On Sat, 2008-04-12 at 11:08 +0200, Philippe Rouquier wrote: > > > > Could someone help me with that please? > > Just reorder your code to use pango_cairo_show_layout() for both display > and print, then make sure you set font opt

Re: printing gtktextview and text layout

2008-04-15 Thread Behdad Esfahbod
On Sat, 2008-04-12 at 11:08 +0200, Philippe Rouquier wrote: > > Could someone help me with that please? Just reorder your code to use pango_cairo_show_layout() for both display and print, then make sure you set font options on your PangoContext attached to the layout using pango_cairo_context_set

Re: Printing

2008-02-27 Thread Bastiaan Veelo
Bastiaan Veelo wrote: > Enrico Tröger wrote: > >>> 8) When exporting to PDF on Windows, trying to overwrite an existing >>> file, the program crashes (oops!). This works fine on Linux. >>> >>> >> I can't reproduce this, on my Windows 2000 box I can overwrite existing >> files as exp

Re: Printing

2008-02-22 Thread Bastiaan Veelo
Enrico Tröger wrote: > >> 8) When exporting to PDF on Windows, trying to overwrite an existing >> file, the program crashes (oops!). This works fine on Linux. >> > I can't reproduce this, on my Windows 2000 box I can overwrite existing > files as expected. > Now I cannot reproduce either.

Re: Printing

2008-02-22 Thread Bastiaan Veelo
Hi Enrico, I reported a bug on this. You can leave a note that you are able to reproduce this, and maybe mention your printer model and Windows version. See http://bugzilla.gnome.org/show_bug.cgi?id=518052 Thanks, Bastiaan. Enrico Tröger wrote: > > >> 7) When printing under Windows to a C

Re: Printing

2008-02-20 Thread Enrico Tröger
On Wed, 20 Feb 2008 06:31:04 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >> Enrico Tr?ger wrote: > > For examples see: > > http://www.uvena.de/tmp/cairo/print_pango_linux.pdf (fine) > > and > > http://www.uvena.de/tmp/cairo/print_pango_win32.pdf (broken) > > The link to the windows

Re: Printing

2008-02-20 Thread [EMAIL PROTECTED]
>> Enrico Tr?ger wrote: > For examples see: > http://www.uvena.de/tmp/cairo/print_pango_linux.pdf (fine) > and > http://www.uvena.de/tmp/cairo/print_pango_win32.pdf (broken) The link to the windows version is non-functional. I get the following 403 permission error when I try to open it: 403: Yo

Re: Printing

2008-02-19 Thread Enrico Tröger
On Sun, 17 Feb 2008 20:28:49 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> wrote: > Enrico Tröger wrote: > > On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> > > wrote: > > > > Hi, > > > > > >> 1) In order to get approximately correctly scaled text I had to specify > >> a res

Re: Printing

2008-02-17 Thread Bastiaan Veelo
Enrico Tröger wrote: > On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> > wrote: > > Hi, > > >> 1) In order to get approximately correctly scaled text I had to specify >> a resolution of around 27.2 on the pango context. This value was >> determined by trial and error. I

Re: Printing

2008-02-16 Thread Enrico Tröger
On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> wrote: Hi, > 1) In order to get approximately correctly scaled text I had to specify > a resolution of around 27.2 on the pango context. This value was > determined by trial and error. I suspect I am doing something > funda

Re: Printing

2008-02-13 Thread Bastiaan Veelo
Enrico Tröger wrote: >> You will find the code attached, these are the issues: >> > I don't ;-(. > > Let's try inline then: /* February 2008, Bastiaan Veelo, [EMAIL PROTECTED] */ #include #include #ifdef CAIRO_HAS_PDF_SURFACE #include #endif static GtkWidget *window = NULL; static

Re: Printing

2008-02-13 Thread Enrico Tröger
On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> wrote: Hi, > In lack of a complete printing tutorial, I wrote one myself. There are cool. I missed a tutorial too when I was first working with the new printing API. > You will find the code attached, these are the issues:

Re: printing, cairo, & cups

2007-11-27 Thread Behdad Esfahbod
Hi Thomas, On Unix, Gtk+ uses the PS backend, not the image. The image backend makes little sense for printing. On Tue, 2007-11-27 at 06:58 -0600, Thomas Stover wrote: > My main question is this. Somewhere the cairo > RGBA color space must be mapped into a printer's device dependent color > sp

Re: printing problem

2005-05-12 Thread stian
> hi > > I was wanting to divide my page in two columns. One > column with images and the other with text. Could > someone give me an idea of how to do this. I have been > trying libgnomeprint library. > > Printing a char * in multiline and restricted to a > certain column of the page is my main pr

Re: printing HtmlView (from libgtkhtml)

2005-04-20 Thread Peter Bloomfield
On 04/20/2005 08:18:55 AM, Hubert Sokolowski wrote: Hi! How to easily print the content of HtmlView created with html_view_new () ? Or some way to save it to a postscript file? The HtmlView api (libgtkhtml/view/htmlview.h) is quite sparse--nothing about printing, saving, or otherwise exporting