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();
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
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.
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);
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
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
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
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
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
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.
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
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
* 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
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
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
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
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.
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
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
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
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
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
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
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?
* 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?
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
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
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
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
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
[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
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
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
33 matches
Mail list logo