From gnome-print-admin@trna.ximian.com Tue Apr 2 23:24:17 2002 Received: from web12906.mail.yahoo.com (web12906.mail.yahoo.com [216.136.174.73]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g334OH017585 for ; Tue, 2 Apr 2002 23:24:17 -0500 Message-ID: <20020403042344.14026.qmail@web12906.mail.yahoo.com> Received: from [203.200.22.66] by web12906.mail.yahoo.com via HTTP; Tue, 02 Apr 2002 20:23:44 PST Date: Tue, 2 Apr 2002 20:23:44 -0800 (PST) From: Harsha Kodnad To: gnome-print miling list Cc: GnomeDevel Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [gnome-print] pixbuf printing Hello, I have a GdkPixmap, I am drawing some text on this pixmap using gdk_draw_text. Now I want to transfer this text to GnomePrintContext but, when I transfer it using fallowing code it is loosing its quality. It looks horible in printout (and even in preview also) is there any solutions to improve the quality ??? void PrintStretchedText ( GdkPixmap pixmap, GdkColorMap cmap, int xSrc, int ySrc, int widthSrc, int heightSrc, GnomePrintContext pc, INT pageHeight, xDest, yDest, widthDest, heightDest ) { GdkPixbuf pixbuf; //create a pixbuf from pixmap since you can't print pixmap directly!!!! pixbuf = gdk_pixbuf_get_from_drawable ( NULL, pixmap, cmap, xSrc, ySrc, 0, 0, widthSrc, heightSrc ); // print the pixbuf gnome_print_gsave ( pc ); gnome_print_translate ( pc, xDest, pageHeight - yDest -heightDest ); // scale the pixbuf to the destination size // even if scaling is 1:1 then also it is loosing quality. gnome_print_scale ( pc, widthDest, heightDest ); gnome_print_pixbuf ( pc, pixbuf ); gnome_print_grestore ( pc ); gdk_pixbuf_unref ( pixbuf ); return; } ===== Harsha Kodnad __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From gnome-print-admin@trna.ximian.com Wed Apr 3 10:32:53 2002 Received: from fep06-svc.mail.telepac.pt (fep06-svc.mail.telepac.pt [194.65.5.211]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g33FWp000963 for ; Wed, 3 Apr 2002 10:32:52 -0500 Received: from mondego.com ([213.13.72.80]) by fep06-svc.mail.telepac.pt (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020403153211.EHGT2371.fep06-svc.mail.telepac.pt@mondego.com> for ; Wed, 3 Apr 2002 16:32:11 +0100 Message-ID: <3CAB205A.5040001@mondego.com> Date: Wed, 03 Apr 2002 16:31:38 +0100 From: roger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: gnome-print@ximian.com Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [gnome-print] Problem printing latin caract Hi!
I'm having a problem with ,

        gnome_print_show (pc, _(texto.c_str()));

it happens when i have words like "joão", "frança", "nº", etc...
in the string . it doesn't print!!!

can someone helpme work around that?
gnomeprint version 0.35

thanx
        Roger


From gnome-print-admin@trna.ximian.com Wed Apr 3 10:58:11 2002 Received: from localhost.localdomain (IDENT:root@[195.218.232.208]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g33Fw8002936 for ; Wed, 3 Apr 2002 10:58:09 -0500 Date: Wed, 3 Apr 2002 21:44:29 +0500 (SAMST) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: roger cc: gnome-print@ximian.com Subject: Re: [gnome-print] Problem printing latin caract In-Reply-To: <3CAB205A.5040001@mondego.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by trna.ximian.com id g33FwC002938 On Wed, 3 Apr 2002, roger wrote: Hi, String should be in utf8 encoding. Best regards, -Vlad > Hi! > I'm having a problem with , > > gnome_print_show (pc, _(texto.c_str())); > > it happens when i have words like "joão", "fran™a", "nº", etc... > in the string . it doesn't print!!! > > can someone helpme work around that? > gnomeprint version 0.35 > > thanx > Roger From gnome-print-admin@trna.ximian.com Wed Apr 3 11:25:15 2002 Received: from ricardo.ecn.wfu.edu (root@ricardo.ecn.wfu.edu [152.17.150.2]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g33GPF005214 for ; Wed, 3 Apr 2002 11:25:15 -0500 Received: from ricardo.ecn.wfu.edu (cottrell@localhost [127.0.0.1]) by ricardo.ecn.wfu.edu (8.12.1/8.12.1) with ESMTP id g33GO2KD024274 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 3 Apr 2002 11:24:02 -0500 Received: from localhost (cottrell@localhost) by ricardo.ecn.wfu.edu (8.12.1/8.12.1/Submit) with ESMTP id g33GO2WE024271 for ; Wed, 3 Apr 2002 11:24:02 -0500 X-Authentication-Warning: ricardo.ecn.wfu.edu: cottrell owned process doing -bs Date: Wed, 3 Apr 2002 11:24:02 -0500 (EST) From: Allin Cottrell X-X-Sender: cottrell@ricardo.ecn.wfu.edu To: gnome-print@ximian.com Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gnome-print] printing a ps or eps file My app generates graphs in postscript or EPS. I'd like to offer the user the chance to print these files via gnome-print, but I'm not sure how to use gnome-print when the material to print is already in postscript form. Any help appreciated. One other question while I'm at it. Any idea why Courier 10-point should come out unusually light or faint when printing via gnome-print? It looks rather as if the font used is Courier 12-point scaled by 5/6 rather than "real" 10-point. The skeleton of the code that produces this effect is as follows: void myprint (const char *buf) { GnomePrinter *printer; GnomePrintContext *pc; GnomeFont *font; printer = gnome_printer_dialog_new_modal(); if (!printer) return; pc = gnome_print_context_new_with_paper_size(printer, "US-Letter"); gnome_print_beginpage(pc, "my output"); font = gnome_font_new_closest("Courier", GNOME_FONT_BOOK, 0, 10); gnome_print_setfont(pc, font); gnome_print_setrgbcolor(pc, 0, 0, 0); gnome_print_moveto(pc, some_x, some_y); gnome_print_show(pc, buf); gnome_print_showpage(pc); } -- Allin Cottrell Department of Economics Wake Forest University, NC From gnome-print-admin@trna.ximian.com Fri Apr 5 09:30:39 2002 Received: from web12904.mail.yahoo.com (web12904.mail.yahoo.com [216.136.174.71]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g35EUc004967 for ; Fri, 5 Apr 2002 09:30:39 -0500 Message-ID: <20020405143005.55134.qmail@web12904.mail.yahoo.com> Received: from [203.200.22.70] by web12904.mail.yahoo.com via HTTP; Fri, 05 Apr 2002 06:30:05 PST Date: Fri, 5 Apr 2002 06:30:05 -0800 (PST) From: Harsha Kodnad To: gnome-print@ximian.com Cc: gnome-devel-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [gnome-print] printing GdkPixbuf and GdkPixmap Hello everybody, I have a GdkPixmap with some text. Now I want to print it on GnomePrintContext by scaling it down. I am creating a GdkPixbuf from the pixmap and scaling the pixmap and printing it, but It is loosing quality. If I use the GdkPixbuf scaling the output on the GnomePrintContext becomes blur If I use the gnome-print scaling function It loosing quality the fallowing code shows what I am doing can anybody help me ? void PrintStretchedText ( GnomePrintContext * context, GdkPixmap *pixmap, int xSrc, int ySrc, int widthSrc, int heightSrc, int widthDest, int heightDest ) { GdkPixbuf pbsrc, pbscaled; pbsrc = gdk_pixbuf_get_from_drawable ( NULL, src, cmap, xSrc, ySrc, 0, 0, widthSrc, heightSrc ); pbscaled = gdk_pixbuf_scale_simple ( pbsrc, widthDest, heightDest, GDK_INTERP_HYPER ); gnome_print_gsave ( context ); gnome_print_translate ( context, xDest, yDest ); gnome_print_scale ( context, widthDest, heightDest ); gnome_print_pixbuf ( context, pbscaled ); gdk_pixbuf_unref ( pbsrc ); gdk_pixbuf_unref ( pbscaled ); } Thanks in advance, Regards ===== Harsha Kodnad __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From gnome-print-admin@trna.ximian.com Wed Apr 10 03:51:25 2002 Received: from web12906.mail.yahoo.com (web12906.mail.yahoo.com [216.136.174.73]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3A7pP024030 for ; Wed, 10 Apr 2002 03:51:25 -0400 Message-ID: <20020410075046.82196.qmail@web12906.mail.yahoo.com> Received: from [203.200.22.70] by web12906.mail.yahoo.com via HTTP; Wed, 10 Apr 2002 00:50:46 PDT Date: Wed, 10 Apr 2002 00:50:46 -0700 (PDT) From: Harsha Kodnad To: gnome-print miling list Cc: GnomeDevel Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [gnome-print] gnome_printer_dialog_new Hello, To get the GnomePrinter i am using fallowing code dialog = gnome_printer_dilaog_new(); printer = gnome_printer_dialog_get_printer (); the code works fine when I link the libgnomeprint library dynamically but when I link it staticaly it is crashing ?? Is there any solutions ??? Thanks in advance, Regards, ===== Harsha Kodnad __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From gnome-print-admin@trna.ximian.com Wed Apr 17 07:36:46 2002 Received: from fep02-svc.mail.telepac.pt (fep02-svc.mail.telepac.pt [194.65.5.201]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g3HBaj016036 for ; Wed, 17 Apr 2002 07:36:45 -0400 Received: from mondego.com ([213.13.75.239]) by fep02-svc.mail.telepac.pt (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020417113520.EZFX7444.fep02-svc.mail.telepac.pt@mondego.com> for ; Wed, 17 Apr 2002 12:35:20 +0100 Message-ID: <3CBD5E00.207@mondego.com> Date: Wed, 17 Apr 2002 12:35:28 +0100 From: roger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: gnome-print@ximian.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [gnome-print] custumize gnome_print_dialog hi when i show the gnome_print_dialog in the printer entry always appears just "lpr" and i using cups with several printers so, every time a use want to print he need to add "-P theprinter". is there a way to custumize de dialog so he adds the "-P " command to a default printer for that user? everything else works fine thanx roger From gnome-print-admin@trna.ximian.com Wed Apr 24 05:07:49 2002 Received: from mail.gclab.org (postfix@chacha.gclab.org [210.232.184.18]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g3O97l032760 for ; Wed, 24 Apr 2002 05:07:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.gclab.org (Postfix) with ESMTP id 578F51629C3; Wed, 24 Apr 2002 18:06:52 +0900 (JST) Date: Wed, 24 Apr 2002 18:06:42 +0900 (JST) Message-Id: <20020424.180642.607953833.tagoh@gnome.gr.jp> To: gnome-print@ximian.com, Jody Goldberg From: Akira TAGOH Organization: Japan GNOME Users Group X-PGP-key-URL: http://pgp.nic.ad.jp:11371/pks/lookup?op=get&search=0x9DB19904 X-fingerprint: 06B7 CF30 4EF6 224A E660 7A2A D900 A735 9DB1 9904 X-URL: http://www.gclab.org/~at/ X-Attribution: AT X-Mailer: Mew version 2.2 on XEmacs 21.5-b5 (beets) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [gnome-print] feature request for gnome-print Hi, I have a request for feature. Now gnome-print doesn't have language information for each fonts. so all of people isn't necessarily to be able to print out with a default font, and applications may need to gettextize these fontname. but translator may not describe correct font to po files, or the users may not install the fonts described. If gnome-print provides API for getting a language specific font, application won't need to have some fontname gettextized. and those fonts should be able to change by the users. This feature will be needed for CJK anyway. gnome-print provides functions unified to applications would be better, I think. Thanks, -- Akira TAGOH : tagoh@gnome.gr.jp / Japan GNOME Users Group at@gclab.org : tagoh@gnome-db.org / GNOME-DB Project : tagoh@redhat.com / Red Hat, Inc. : tagoh@debian.org / Debian Project From gnome-print-admin@trna.ximian.com Thu Apr 25 15:28:58 2002 Received: from mail.gclab.org (postfix@chacha.gclab.org [210.232.184.18]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g3PJSu009228 for ; Thu, 25 Apr 2002 15:28:57 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.gclab.org (Postfix) with ESMTP id A4BD51629C3; Fri, 26 Apr 2002 04:28:01 +0900 (JST) Date: Fri, 26 Apr 2002 04:27:51 +0900 (JST) Message-Id: <20020426.042751.1025236409.tagoh@gnome.gr.jp> To: Jody Goldberg Cc: gnome-print@ximian.com From: Akira TAGOH In-Reply-To: <20020424121708.GA17819@athlon.thegoldbergs.ca> References: <20020424.180642.607953833.tagoh@gnome.gr.jp> <20020424121708.GA17819@athlon.thegoldbergs.ca> Organization: Japan GNOME Users Group X-PGP-key-URL: http://pgp.nic.ad.jp:11371/pks/lookup?op=get&search=0x9DB19904 X-fingerprint: 06B7 CF30 4EF6 224A E660 7A2A D900 A735 9DB1 9904 X-URL: http://www.gclab.org/~at/ X-Attribution: AT X-Mailer: Mew version 2.2 on XEmacs 21.5-b5 (beets) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [gnome-print] Re: feature request for gnome-print >>>>> On Wed, 24 Apr 2002 08:17:08 -0400, >>>>> "JG" == Jody Goldberg wrote: JG> I don't think this is the way to go. IMHO having multiple font JG> configurations is asking for trouble. Gnumeric has suffered alot JG> due to mis-installed fonts. For gnome2 pango uses Keith Packard's JG> FontConfig library, and gnome-print should do the same. Of course JG> we need to find someone to actually do this work, Yes, I know multiple font configurations issue as you say. Actually current GNOME applications has different fonts for display and printing, especially gtkhtml may has a font which can't print out, because capplet is chosen XLFD. I think Pango's font configuration is excellent, but pangox.aliases also uses XLFD. it means new gnome-print will has same problem, I think. do you plan to get a font from Xft? my purpose is default font should be able to handle most languages as possible, if the users install the fonts needed. and the users may uses some languages which doesn't know well, so for this, I think gnome-print or something else needs to point out whether it's what the font uses for which language. For no separate the font configuration between display and printing, something like the library and the font server needs to have the fonts only which can display and print out, I think. Regards, -- Akira TAGOH : tagoh@gnome.gr.jp / Japan GNOME Users Group at@gclab.org : tagoh@gnome-db.org / GNOME-DB Project : tagoh@redhat.com / Red Hat, Inc. : tagoh@debian.org / Debian Project From gnome-print-admin@trna.ximian.com Tue Apr 30 14:47:57 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UIlt820588 for ; Tue, 30 Apr 2002 14:47:56 -0400 Received: (qmail 6863 invoked by uid 0); 30 Apr 2002 22:06:42 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 30 Apr 2002 22:06:42 -0000 Subject: Re: [gnome-print] Font subsetting, incremental downloading et al in 0.35 From: Chema Celorio To: Richard Chan Cc: gnome-print@ximian.com In-Reply-To: <1017407481.19926.13.camel@caesar> References: <1017407481.19926.13.camel@caesar> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 14:38:36 -0600 Message-Id: <1020199116.15443.37.camel@trunk> Mime-Version: 1.0 sorry for the delayed response. On Fri, 2002-03-29 at 07:08, Richard Chan wrote: > Hi, I'm trying to understand the fontsubsetting architecture in 0.35. > > 1. In order to support incremental downloading of fonts, say for large > CID or TTF fonts, does gnome-print have the concept of > > 1. "a list of all the glyphs from Font ABCD used on page N" > 2. In the ps target, can one > (a) Write the basic font directory > (b) Add charstrings/ttf glyphs on the fly No, gnome-print does not currently implement font subsetting. There is an attempt at font subsetting inside gnome-print but it is not being used. We need to implement font subsettting specially with the increase use of Unicode, because fonts with large coverage are huge. > > Something like > gff_pso_create_font( ...from ttf,otf,pfb or whatever) > > %%Page N > save > gff_so_add_glyphs(...from a vector of glyphs) > restore > %%Page N+1 > gff_pso_add_glyphs(...) > > The idea is something along the lines of what Adobe calls > "incremental font downloading" in its documentation. > > I suppose this is similar to fontsubsetting, but the glyphs > are not all added at once but on a "just-in-time" basis. This is one of the nice things about moving to PDF. In PDF we can just write the text and keep track of the glyhs that we used, then we can great the font object. I think it is better to work towards moving to PDF than to fix the PS backend, but that is arguable. regards, Chema From gnome-print-admin@trna.ximian.com Wed Apr 24 08:18:05 2002 Received: from parallel.thegoldbergs.ca (CPE0000e8e169cd.cpe.net.cable.rogers.com [24.101.66.211]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g3OCI5014381 for ; Wed, 24 Apr 2002 08:18:05 -0400 Received: from athlon ([146.92.33.4] helo=athlon.thegoldbergs.ca ident=mail) by parallel.thegoldbergs.ca with esmtp (Exim 3.35 #1 (Debian)) id 170Lhs-0000PD-00; Wed, 24 Apr 2002 08:17:08 -0400 Received: from jody by athlon.thegoldbergs.ca with local (Exim 3.35 #1 (Debian)) id 170Lhs-0004do-00; Wed, 24 Apr 2002 08:17:08 -0400 Date: Wed, 24 Apr 2002 08:17:08 -0400 To: Akira TAGOH Cc: gnome-print@ximian.com, Jody Goldberg Message-ID: <20020424121708.GA17819@athlon.thegoldbergs.ca> References: <20020424.180642.607953833.tagoh@gnome.gr.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020424.180642.607953833.tagoh@gnome.gr.jp> User-Agent: Mutt/1.3.28i From: Jody Goldberg Subject: [gnome-print] Re: feature request for gnome-print On Wed, Apr 24, 2002 at 06:06:42PM +0900, Akira TAGOH wrote: > > I have a request for feature. > Now gnome-print doesn't have language information for each > fonts. so all of people isn't necessarily to be able to > print out with a default font, and applications may need to > gettextize these fontname. but translator may not describe > correct font to po files, or the users may not install the > fonts described. > If gnome-print provides API for getting a language specific > font, application won't need to have some fontname > gettextized. and those fonts should be able to change by the > users. > > This feature will be needed for CJK anyway. gnome-print > provides functions unified to applications would be better, > I think. I don't think this is the way to go. IMHO having multiple font configurations is asking for trouble. Gnumeric has suffered alot due to mis-installed fonts. For gnome2 pango uses Keith Packard's FontConfig library, and gnome-print should do the same. Of course we need to find someone to actually do this work, From gnome-print-admin@trna.ximian.com Mon Apr 1 13:32:52 2002 Received: from imo-d10.mx.aol.com (imo-d10.mx.aol.com [205.188.157.42]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g31IWp022036 for ; Mon, 1 Apr 2002 13:32:51 -0500 Received: from talus46@netscape.net by imo-d10.mx.aol.com (mail_out_v32.5.) id z.1b.36a89dd (16213) for ; Mon, 1 Apr 2002 13:32:07 -0500 (EST) Received: from netscape.net (adsl-b3-73-168.telepac.pt [213.13.73.168]) by air-in01.mx.aol.com (v84.14) with ESMTP id MAILININ11-0401133207; Mon, 01 Apr 2002 13:32:07 -0500 Message-ID: <3CA8A77E.8070902@netscape.net> Date: Mon, 01 Apr 2002 19:31:26 +0100 From: Talus User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: gnome-print@ximian.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Subject: [gnome-print] questio about gnome_print_show hi i'm having a problem to get this line to print gnome_print_show(pc,_(gnome_config_get_string("/mondego/Empresa/morada"))); can someone tell me why? if i change it to gnome_print_show(pc,_("Test string")); it just works fine. thanks! Roger From gnome-print-admin@trna.ximian.com Tue Apr 30 18:08:22 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UM8L807860 for ; Tue, 30 Apr 2002 18:08:21 -0400 Received: (qmail 26880 invoked by uid 0); 1 May 2002 01:27:09 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:27:09 -0000 Subject: Re: [gnome-print] Unable to compile gnome-print-0.34 From: Chema Celorio To: Elardus Viljoen Cc: gnome-print@ximian.com In-Reply-To: <3C79F028.B702984A@obsidianlabs.com> References: <3C79F028.B702984A@obsidianlabs.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 17:59:01 -0600 Message-Id: <1020211142.17851.67.camel@trunk> Mime-Version: 1.0 Seems like you don't have the freetype headers installed. Install the freetype-devel package and it should work. regards, Chema On Mon, 2002-02-25 at 02:04, Elardus Viljoen wrote: > Hi! > > When compiling gnome-print-0.34 the following occurs: > > . > . > . > > usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 > -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include > -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gnome-xml > -DPROFILEDIR=\""/usr/share/gnome-print/0.34/profiles/"\" > -DGNOMEPRINT_LIBDIR=\""/usr/lib"\" -s -O2 -march=i686 > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include > -I/usr/X11R6/include -I/usr/include > -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DBINDIR=\""/usr/bin"\" > -DDATADIR=\""/usr/share"\" > -DFONTMAPDIR_STATIC=\""/usr/share/gnome/fonts"\" > -DFONTMAPDIR_DYNAMIC=\""/usr/etc/gnome/fonts"\" -s -O2 -march=i686 > -Wall -Wunused -c gnome-print-ps2.c > rm -f .libs/gnome-print-ps2.lo > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl -I../intl -I/usr/include > -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include > -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0 > -I/usr/include/gnome-xml > -DPROFILEDIR=\"/usr/share/gnome-print/0.34/profiles/\" > -DGNOMEPRINT_LIBDIR=\"/usr/lib\" -s -O2 -march=i686 > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include > -I/usr/X11R6/include -I/usr/include > -DGNOMELOCALEDIR=\"/usr/share/locale\" -DBINDIR=\"/usr/bin\" > -DDATADIR=\"/usr/share\" -DFONTMAPDIR_STATIC=\"/usr/share/gnome/fonts\" > -DFONTMAPDIR_DYNAMIC=\"/usr/etc/gnome/fonts\" -s -O2 -march=i686 -Wall > -Wunused -c gnome-print-ps2.c -fPIC -DPIC -o .libs/gnome-print-ps2.lo > In file included from gnome-print-ps2.c:51: > ../libgnomeprint/gnome-font-private.h:50: parse error before `FT_Face' > ../libgnomeprint/gnome-font-private.h:50: warning: no semicolon at end > of struct or union > make[2]: *** [gnome-print-ps2.lo] Error 1 > make[2]: Leaving directory `/usr/src/gnome-print-0.34/libgnomeprint' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/gnome-print-0.34' > make: *** [all-recursive-am] Error 2 > > I get the same result when compiling both 0.35 and 0.32. > > -- > Regards. > Elardus > elardus@obsidianlabs.com > > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print > -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:09:56 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UM9t808191 for ; Tue, 30 Apr 2002 18:09:55 -0400 Received: (qmail 27444 invoked by uid 0); 1 May 2002 01:28:43 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:28:43 -0000 Subject: Re: [gnome-print] Redefining the default output filename From: Chema Celorio To: jgotts@linuxsavvy.com Cc: lauris@ximian.com, gnome-print@ximian.com In-Reply-To: <200203190433.g2J4X9s11859@ann-arbor.fmfts.com> References: <200203190433.g2J4X9s11859@ann-arbor.fmfts.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:00:36 -0600 Message-Id: <1020211236.15414.70.camel@trunk> Mime-Version: 1.0 Not right now, but in the new design of gnome-print you are going to easily be able to do this. So the answer is no, not yet but we are thinking of this. regards, Chema On Mon, 2002-03-18 at 22:33, jgotts@linuxsavvy.com wrote: > We'd like to be able to redefine the default output filename at runtime based > upon what is being printed. The user would still be able to override this > default value, of course. > > I've studied the source code for a while and this doesn't appear to be > possible. Any hints? > > John > > -- > John GOTTS http://linuxsavvy.com/staff/jgotts > > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print > -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:10:56 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMAt808293 for ; Tue, 30 Apr 2002 18:10:55 -0400 Received: (qmail 27866 invoked by uid 0); 1 May 2002 01:29:43 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:29:43 -0000 Subject: Re: [gnome-print] Bug in preview From: Chema Celorio To: jgotts@linuxsavvy.com Cc: gnome-print@ximian.com, lauris@ximian.com In-Reply-To: <200203212010.g2LKAa721329@ann-arbor.fmfts.com> References: <200203212010.g2LKAa721329@ann-arbor.fmfts.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:01:36 -0600 Message-Id: <1020211297.15443.72.camel@trunk> Mime-Version: 1.0 Please bugzilla this. regards, Chema On Thu, 2002-03-21 at 14:10, jgotts@linuxsavvy.com wrote: > I don't know if anyone's noticed this but subsequent pages seem to lose the > font in the preview. > > We're generating a 2+ page report that displays correctly on our PostScript > printers and in ggv and gv but gnome-print's preview function reverts to some > kind of default font starting on page 2. > > I can attempt to boil this down to a test case upon request, but here's the > skeleton of what we're doing: > > font = gnome_font_new("Helvetica", 8.0); > gnome_print_beginpage (pc, ""); > gnome_print_setfont (pc, font); > gnome_print_moveto(pc, x, y); > gnome_print_show (pc, "This is in 8 point Helvetica."); > gnome_print_showpage (pc); > gnome_print_beginpage (pc, ""); > gnome_print_moveto(pc, x, y); > gnome_print_show (pc, "This is in 8 point Helvetica in the generated PostScript but not in the preview window."); > > John > > -- > John GOTTS http://linuxsavvy.com/staff/jgotts > > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print > -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:11:44 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMBi808361 for ; Tue, 30 Apr 2002 18:11:44 -0400 Received: (qmail 28199 invoked by uid 0); 1 May 2002 01:30:31 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:30:31 -0000 Subject: Re: [gnome-print] Access off beginning of array causes FPE on Alpha From: Chema Celorio To: gnome-print@ximian.com In-Reply-To: <877ko3tcen.fsf@falcon.wanadoo.fr> References: <877ko3tcen.fsf@falcon.wanadoo.fr> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:02:24 -0600 Message-Id: <1020211345.15418.74.camel@trunk> Mime-Version: 1.0 Can you add a bug in bugzilla and attach this patch please? Jody: I don't know if this is correct, can you check this patch please? thanks, Chema On Sat, 2002-03-23 at 11:35, Christian Marillat wrote: > Hi, > > The following brief patch fixes a problem where gfft2_move_to() is reading > an item at index -1 of an array. On other platforms, this behavior probably > goes unnoticed, but on Alpha it leads to a floating point exception crash > because the location often does not contain a valid floating point number. > This bug causes the print preview function to crash on Alpha. > > --- gnome-font-face.c~ Fri Jan 11 22:52:59 2002 > +++ gnome-font-face.c Sat Mar 23 12:00:24 2002 > @@ -724,7 +724,7 @@ > p.x = to->x * od->t[0] + to->y * od->t[2]; > p.y = to->x * od->t[1] + to->y * od->t[3]; > > - if ((p.x != s->x3) || (p.y != s->y3)) { > + if (od->end == 0 || (p.x != s->x3) || (p.y != s->y3)) { > od->bp[od->end].code = ART_MOVETO; > od->bp[od->end].x3 = to->x * od->t[0] + to->y * od->t[2]; > od->bp[od->end].y3 = to->x * od->t[1] + to->y * od->t[3]; > > > > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:12:17 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMCG808438 for ; Tue, 30 Apr 2002 18:12:16 -0400 Received: (qmail 28433 invoked by uid 0); 1 May 2002 01:31:04 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:31:04 -0000 Subject: Re: [gnome-print] Access off beginning of array causes FPE on Alpha From: Chema Celorio To: gnome-print@ximian.com In-Reply-To: <87u1r3v2eu.fsf@falcon.wanadoo.fr> References: <87u1r3v2eu.fsf@falcon.wanadoo.fr> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:02:57 -0600 Message-Id: <1020211378.15418.76.camel@trunk> Mime-Version: 1.0 Please a bugzilla bug for this so that we don't loose track of it. thanks, Chema On Tue, 2002-03-26 at 08:17, Christian Marillat wrote: > Hi, > > Two patchs follows from a Debian user. > ... From gnome-print-admin@trna.ximian.com Tue Apr 30 18:12:59 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMCx808499 for ; Tue, 30 Apr 2002 18:12:59 -0400 Received: (qmail 28659 invoked by uid 0); 1 May 2002 01:31:47 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:31:47 -0000 Subject: Re: [gnome-print] PPD files From: Chema Celorio To: Rafal Hajdacki Cc: Gnome-print@ximian.com In-Reply-To: <1017495250.1423.26.camel@grzyb> References: <1017495250.1423.26.camel@grzyb> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:03:40 -0600 Message-Id: <1020211420.17851.78.camel@trunk> Mime-Version: 1.0 Absolutely. We are thinking on this. regards, Chema On Sat, 2002-03-30 at 07:34, Rafal Hajdacki wrote: > Are there any plans for using PPD files in gnome-print so I could > select many options like paper size, resolutino etc. in print dialog? > Just like in Gimp or StarOffice. Or maybe this is already available in > gnome-print for Gnome 2.0? > > I'm not subscribed to this list so please cc answer to me. > > > Hajdi. > > > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:13:26 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMDQ808566 for ; Tue, 30 Apr 2002 18:13:26 -0400 Received: (qmail 28871 invoked by uid 0); 1 May 2002 01:32:14 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:32:14 -0000 Subject: Re: [gnome-print] questio about gnome_print_show From: Chema Celorio To: Talus Cc: gnome-print@ximian.com In-Reply-To: <3CA8A77E.8070902@netscape.net> References: <3CA8A77E.8070902@netscape.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:04:06 -0600 Message-Id: <1020211447.15443.80.camel@trunk> Mime-Version: 1.0 What type of problems? How does it fail/not work? thanks, Chema On Mon, 2002-04-01 at 12:31, Talus wrote: > hi > i'm having a problem to get this line to print > > gnome_print_show(pc,_(gnome_config_get_string("/mondego/Empresa/morada"))); > > can someone tell me why? > if i change it to > gnome_print_show(pc,_("Test string")); > > it just works fine. > > thanks! > Roger > > > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:14:36 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMEa808841 for ; Tue, 30 Apr 2002 18:14:36 -0400 Received: (qmail 29328 invoked by uid 0); 1 May 2002 01:33:24 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:33:24 -0000 Subject: Re: [gnome-print] pixbuf printing From: Chema Celorio To: Harsha Kodnad Cc: gnome-print miling list In-Reply-To: <20020403042344.14026.qmail@web12906.mail.yahoo.com> References: <20020403042344.14026.qmail@web12906.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:05:16 -0600 Message-Id: <1020211517.17851.82.camel@trunk> Mime-Version: 1.0 So it looks good in the screen but horrible in the Postscript or preview window? Is this what is happening? thanks, Chema From gnome-print-admin@trna.ximian.com Tue Apr 30 18:16:51 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMGo809289 for ; Tue, 30 Apr 2002 18:16:51 -0400 Received: (qmail 152 invoked by uid 0); 1 May 2002 01:35:38 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:35:38 -0000 Subject: Re: [gnome-print] printing a ps or eps file From: Chema Celorio To: Allin Cottrell Cc: gnome-print@ximian.com In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:07:30 -0600 Message-Id: <1020211652.17851.85.camel@trunk> Mime-Version: 1.0 On Wed, 2002-04-03 at 10:24, Allin Cottrell wrote: > My app generates graphs in postscript or EPS. I'd like to offer the > user the chance to print these files via gnome-print, but I'm not sure > how to use gnome-print when the material to print is already in > postscript form. Any help appreciated. This is not currently supported and i don't think it will be in the sort term. It requires a lot of code on our side for a not so important feature. Even if somebody wrote the code i think we will not add it into gnome-print, it isn't trivial. > One other question while I'm at it. Any idea why Courier 10-point > should come out unusually light or faint when printing via > gnome-print? It looks rather as if the font used is Courier 12-point > scaled by 5/6 rather than "real" 10-point. The skeleton of the code > that produces this effect is as follows: I don't know. Could you provide as .c file that compiles as a simple test case? If you do, i'll look into it. thanks, Chema > > void myprint (const char *buf) > { > GnomePrinter *printer; > GnomePrintContext *pc; > GnomeFont *font; .... From gnome-print-admin@trna.ximian.com Tue Apr 30 18:17:57 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMHv809453 for ; Tue, 30 Apr 2002 18:17:57 -0400 Received: (qmail 584 invoked by uid 0); 1 May 2002 01:36:42 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:36:42 -0000 Subject: Re: [gnome-print] gnome_printer_dialog_new From: Chema Celorio To: Harsha Kodnad Cc: gnome-print miling list , GnomeDevel Mailing List In-Reply-To: <20020410075046.82196.qmail@web12906.mail.yahoo.com> References: <20020410075046.82196.qmail@web12906.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:08:35 -0600 Message-Id: <1020211716.15414.87.camel@trunk> Mime-Version: 1.0 It might be something wrong inside your code that is only triggered when linking staticaly. A stack trace would be usefull to debug this, but my hunch is that it is not on our side, i could be wrong of course. regards, Chema On Wed, 2002-04-10 at 01:50, Harsha Kodnad wrote: > > Hello, > > To get the GnomePrinter i am using fallowing code > > dialog = gnome_printer_dilaog_new(); > printer = gnome_printer_dialog_get_printer (); > > the code works fine when I link the libgnomeprint > library dynamically but when I link it staticaly it is > crashing ?? > Is there any solutions ??? > > Thanks in advance, > > Regards, > > ===== > Harsha Kodnad > > __________________________________________________ > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax > http://taxes.yahoo.com/ > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print > -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:18:35 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMIY809615 for ; Tue, 30 Apr 2002 18:18:34 -0400 Received: (qmail 900 invoked by uid 0); 1 May 2002 01:37:22 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:37:22 -0000 Subject: Re: [gnome-print] custumize gnome_print_dialog From: Chema Celorio To: roger Cc: gnome-print@ximian.com In-Reply-To: <3CBD5E00.207@mondego.com> References: <3CBD5E00.207@mondego.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:09:15 -0600 Message-Id: <1020211756.15414.89.camel@trunk> Mime-Version: 1.0 Not right now, but we are planning of supporting this in future gnome-print versions. regards, Chema On Wed, 2002-04-17 at 05:35, roger wrote: > hi > when i show the gnome_print_dialog > in the printer entry always appears just "lpr" and i using cups > with several printers so, every time a use want to print he need to add > "-P theprinter". > is there a way to custumize de dialog so he adds the "-P " command to a > default printer for that user? > everything else works fine > thanx > roger > > > _______________________________________________ > Gnome-print maillist - Gnome-print@ximian.com > http://lists.ximian.com/mailman/listinfo/gnome-print > -- From gnome-print-admin@trna.ximian.com Tue Apr 30 18:25:29 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UMPT810597 for ; Tue, 30 Apr 2002 18:25:29 -0400 Received: (qmail 3345 invoked by uid 0); 1 May 2002 01:44:16 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 01:44:16 -0000 From: Chema Celorio To: gnome-print@ximian.com Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:16:09 -0600 Message-Id: <1020212169.15443.96.camel@trunk> Mime-Version: 1.0 Subject: [gnome-print] New gnome-print maintainer Lauris has expressed that he does not intend to work on gnome-print in the new future, because of this I am going take the maintainership of the project. I'll send a message soon to this list regarding my plan for gnome-print. If you have any bugs still outstanding, please bugzilla them. thanks, Chema From gnome-print-admin@trna.ximian.com Tue Apr 30 18:47:46 2002 Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g3UMlc812540; Tue, 30 Apr 2002 18:47:43 -0400 Received: from aurora.localdomain tadams-lists@smtp-send.myrealbox.com [209.178.154.98] by smtp-send.myrealbox.com with Novell NIMS $Revision: 2.88.1.1 $ on Novell NetWare via secured & encrypted transport (TLS); Tue, 30 Apr 2002 17:40:18 -0600 Subject: Re: [gnome-print] printing a ps or eps file From: "Trever L. Adams" To: Chema Celorio Cc: Allin Cottrell , gnome-print@ximian.com In-Reply-To: <1020211652.17851.85.camel@trunk> References: <1020211652.17851.85.camel@trunk> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.4.99 Date: 30 Apr 2002 16:40:26 -0700 Message-Id: <1020210029.1374.7.camel@aurora> Mime-Version: 1.0 On Tue, 2002-04-30 at 17:07, Chema Celorio wrote: > On Wed, 2002-04-03 at 10:24, Allin Cottrell wrote: > > My app generates graphs in postscript or EPS. I'd like to offer the > > user the chance to print these files via gnome-print, but I'm not sure > > how to use gnome-print when the material to print is already in > > postscript form. Any help appreciated. > > This is not currently supported and i don't think it will be in the sort > term. It requires a lot of code on our side for a not so important > feature. Even if somebody wrote the code i think we will not add it into > gnome-print, it isn't trivial. Obviously, I am not providing code at the moment. Though, I could send someone my libfax or they can look at the sendfax scripts (which is where I got mine) on how to use gv to convert to an image. Then gnome-print could just print the image. app -> gnome-print -> ghostscript -> jpeg -> gnome-print -> "printer" Not sure it is that much code. The only problem is the dpi of the printer, etc. Do you always convert image to 300? 600? 1200? Is there a way the gnome-print knows the dpi so ghostscript can do the right conversion? Anyway, as I said, no code, and I am not very familiar with gnome-print, but using ghostscript for the conversion of ps or eps to an image should not be that big of a deal, I don't think. Maybe I am off in the weeds, but it seems I did some of this for libfax and mgetty+sendfax is where I got the idea (since my libfax is just a wrapper around sendfax, ghostscript, etc.). Trever From gnome-print-admin@trna.ximian.com Tue Apr 30 18:50:11 2002 Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by trna.ximian.com (8.11.6/8.11.6) with ESMTP id g3UMo2812605 for ; Tue, 30 Apr 2002 18:50:08 -0400 Received: from aurora.localdomain tadams-lists@smtp-send.myrealbox.com [209.178.154.98] by smtp-send.myrealbox.com with Novell NIMS $Revision: 2.88.1.1 $ on Novell NetWare via secured & encrypted transport (TLS); Tue, 30 Apr 2002 17:42:56 -0600 Subject: Re: [gnome-print] [Fwd: Desktop ain't no desktop without pretty printing] From: "Trever L. Adams" To: "Trever L. Adams" Cc: desktop-devel-list@gnome.org, gnome-print@ximian.com In-Reply-To: <1020209714.1388.3.camel@aurora> References: <1011862310.1197.12.camel@aurora> <1020209714.1388.3.camel@aurora> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.4.99 Date: 30 Apr 2002 16:43:04 -0700 Message-Id: <1020210187.1373.10.camel@aurora> Mime-Version: 1.0 Sorry, I screwed up and sent my response to the wrong list. On the reply. Anyway, this one is on the right list. Apologies to desktop-devel. Trever On Tue, 2002-04-30 at 16:35, Trever L. Adams wrote: > On Thu, 2002-01-24 at 00:51, Trever L. Adams wrote: > > Attached is a message I sent to desktop-devel-list@gnome.org. I really > > am wanting to get involved and get printing to be on par with Mac and > > Windows. Preferably, let us surpass them. > > > > Please, do carbon copy me in any response as I am not on this list. (I > > will join if these issues are taken up.) > > > > Trever Adams > > Why is this here now. I sent it, it appeared, and now it is being > re-injected? Oh well. Maybe this time it will work out with the > printing conversation going on. > > Trever From gnome-print-admin@trna.ximian.com Tue Apr 30 19:03:10 2002 Received: from qix.netcorps.com (qix.netcorps.com [209.25.140.3]) by trna.ximian.com (8.11.6/8.11.6) with SMTP id g3UN3A813655 for ; Tue, 30 Apr 2002 19:03:10 -0400 Received: (qmail 17270 invoked by uid 0); 1 May 2002 02:21:58 -0000 Received: from unknown (HELO trunk.localnet) (200.67.210.134) by qix.netcorps.com with SMTP; 1 May 2002 02:21:58 -0000 Subject: Re: [gnome-print] printing a ps or eps file From: Chema Celorio To: "Trever L. Adams" Cc: Allin Cottrell , gnome-print@ximian.com In-Reply-To: <1020210029.1374.7.camel@aurora> References: <1020211652.17851.85.camel@trunk> <1020210029.1374.7.camel@aurora> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.2.99 Preview Release Date: 30 Apr 2002 18:53:50 -0600 Message-Id: <1020214431.15414.112.camel@trunk> Mime-Version: 1.0 On Tue, 2002-04-30 at 17:40, Trever L. Adams wrote: > On Tue, 2002-04-30 at 17:07, Chema Celorio wrote: > > On Wed, 2002-04-03 at 10:24, Allin Cottrell wrote: > > > My app generates graphs in postscript or EPS. I'd like to offer the > > > user the chance to print these files via gnome-print, but I'm not sure > > > how to use gnome-print when the material to print is already in > > > postscript form. Any help appreciated. > > > > This is not currently supported and i don't think it will be in the sort > > term. It requires a lot of code on our side for a not so important > > feature. Even if somebody wrote the code i think we will not add it into > > gnome-print, it isn't trivial. > > Obviously, I am not providing code at the moment. Though, I could send > someone my libfax or they can look at the sendfax scripts (which is > where I got mine) on how to use gv to convert to an image. Then > gnome-print could just print the image. Gnome-print powered apps can use the gnome-print API to print to a number of different backends, I don't feel that we should support functionality for an app that is going to generate PS directly. The app can generate the output with gnome_print calls, which is really very similar to Postscript. if you want to do : 100 100 translate 72 72 moveto 72 220 lineto showpage in gnome_print you would do: gnome_print_beginpage (pc); gnome_print_translate (pc, 100, 100); gnome_print_moveto (pc, 72, 72); gnome_print_lineto (pc. 72, 220); gnome_print_showpage (pc); So there is very little reason for an app that wants to use gnome-print to emit PS code directly. > app -> gnome-print -> ghostscript -> jpeg -> gnome-print -> "printer" > > Not sure it is that much code. The only problem is the dpi of the > printer, etc. Do you always convert image to 300? 600? 1200? Is there > a way the gnome-print knows the dpi so ghostscript can do the right > conversion? Yes, but what would we win from this? regards, Chema