From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Patch] Basic WYSIWYG printing in GNU Emacs Date: Thu, 12 Aug 2021 09:11:00 +0300 Message-ID: <83czqjdwgb.fsf@gnu.org> References: <83y299fpmh.fsf@gnu.org> <83zgtodx8j.fsf@gnu.org> <83lf57exgd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37397"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Anand Tamariya Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 12 08:11:50 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mE3wT-0009Vj-Rq for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Aug 2021 08:11:49 +0200 Original-Received: from localhost ([::1]:45842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mE3wS-00008q-9R for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Aug 2021 02:11:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE3vx-0007vt-Mx for emacs-devel@gnu.org; Thu, 12 Aug 2021 02:11:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57104) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mE3vx-00006W-Fd; Thu, 12 Aug 2021 02:11:17 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3811 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE3vw-00054N-RL; Thu, 12 Aug 2021 02:11:17 -0400 In-Reply-To: (message from Anand Tamariya on Thu, 12 Aug 2021 11:04:39 +0530) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272342 Archived-At: > From: Anand Tamariya > Date: Thu, 12 Aug 2021 11:04:39 +0530 > Cc: emacs-devel@gnu.org > > > Correction is in order - the screenshot/ rendering within Emacs requires Ghostscript. Printing to > printer > > would use OS specific print commands e.g. lpr on *nix. > > Now I'm even more confused. How does one "render within Emacs with > Ghostscript"? Emacs display rendering uses our display engine, which > doesn't need Ghostscript, and AFAIK cannot use it. I guess I'm > misunderstanding something very basic here... > > The screenshots linked in OP shows split windows - one with original text and another with PS file. The PS > file section is actually a PNG image generated with Ghostscript from the PS file. The PS file itself is > generated by my code. OK, that takes care of my confusion, thanks. But the original question still stands: where do you make use of Ghostscript in your code which generates the PS file? Or maybe you don't use Ghostscript for that (which would be good news), and I just misunderstood you did? IOW, is Ghostscript a prerequisite for using your WYSIWYG printing code to produce the PS stuff (as opposed to sending the PS to the printer)?