From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Re: [Patch] Basic WYSIWYG printing in GNU Emacs Date: Wed, 11 Aug 2021 21:19:14 +0530 Message-ID: References: <83y299fpmh.fsf@gnu.org> <83zgtodx8j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000020b42905c94a9048" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34490"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 11 17:50:20 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 1mDqUm-0008mQ-ME for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 17:50:20 +0200 Original-Received: from localhost ([::1]:32798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDqUl-0002YM-Bn for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 11:50:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDqU1-0001sc-14 for emacs-devel@gnu.org; Wed, 11 Aug 2021 11:49:33 -0400 Original-Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:38729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDqTw-0005H6-D0; Wed, 11 Aug 2021 11:49:32 -0400 Original-Received: by mail-io1-xd29.google.com with SMTP id a13so4241144iol.5; Wed, 11 Aug 2021 08:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NC1Y62W74o9PrtfSgzwZ6m4GYd+qi1pjUNnl3W+ZXtI=; b=qDA+EQyJ8t69g+XBQaGz34CDhOsyYGo8+yfPnLG8gq0kcDGPpfT5+J9rWwkHXmWc11 8rfcrYZvEE7C9/G1yyHd//+tMJ2utI9AOhZ8RQTYfJAoSRxZhGZM06pQFD5B7UWhiWM7 CoSnBBf8hH2izYK5GwCsODQpsT7QjjyZfCX0Pn807zQN5AvpPx7Ko310V7Eduocs9pbE yTPo42qGhdigeM7TDn61AaTP4qaOBKmLMRaseeGquWGzS62+xVCDIjWYM6XrdtC+m9x4 j1gucHrmhwQ99UmXu3n74m3yfnud8t2CKLR/XDHgS2FFTvJyDQ/MIUQhEsTLpXqOma/e sIMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NC1Y62W74o9PrtfSgzwZ6m4GYd+qi1pjUNnl3W+ZXtI=; b=GhtJcYtOLeJza9snZ6Gz7agQngwtEODdmt132V9lq0ynXzgoxX6FWAwNZahrznPwuC 8kvlDMIbvCZVfGnliEM2isQc9fAo7Ktyo8ntS+UCI5N0YEQ/Y93S3xMRCFJNShfv/ktg fyNbGcnJ8kmT4HdPTTgqFPDzhJSZ4qBm4sGmUxZ1K5nlsHDzWi6WNfHpXWFXUKrY78Jy oHfem8UVhqdj1MWvke9mL7AKFXTE8w6ruWhhZIyijc79p3tUg8JLR9ZtXpfR7/ivVjl+ Hd5k6s7/N9O2FSEL0m1GPvpkewaKWexyNJBv+KTYVU2Jk7V4YxYYSH0/GsdnNNGL7xiH 7CBA== X-Gm-Message-State: AOAM532Axjgguq/gYGnauhXpEMCR9zMsOguyn/Ti8pld4THCvUDmLKV8 ypK4KX4bOP1rQ1asctCcr75W1oOing3Q6h6+94d+Wz8cFBk= X-Google-Smtp-Source: ABdhPJwVA8JA6DSh/wWEzV3e9KZKHzRGD5UPv8gbUmboY1bCAfYHq/LfL6B8FzvwgKpH9aQBoKpOAzGPMl+410rMoyI= X-Received: by 2002:a5d:9284:: with SMTP id s4mr91628iom.131.1628696966377; Wed, 11 Aug 2021 08:49:26 -0700 (PDT) In-Reply-To: <83zgtodx8j.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=atamariya@gmail.com; helo=mail-io1-xd29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:272323 Archived-At: --00000000000020b42905c94a9048 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 11, 2021 at 5:11 PM Eli Zaretskii wrote: > > From: Anand Tamariya > > Date: Wed, 11 Aug 2021 10:02:03 +0530 > > Cc: emacs-devel@gnu.org > > > > Printers use "postscriptname" defined in a font file while searching for > fonts. psname.txt provides a sample > > of how to read that information from a font backend. It is not mandatory > - but its presence will prevent nasty > > surprises. In its absence, Lisp code uses font file base name. If the > file name doesn't match > > postscriptname, printing might fail - "might" because printer will try > its best to substitute a suitable font. > > Theoretically, there's no dependency except Ghostscript which does most > of the heavy lifting for printing in > > Emacs. Fonts other than Truetype might require additional configuration > as defined in Ghostscript manual. > > Could you please point to the code which uses or requires Ghostscript, > I don't think I see it in the patch you sent. And since you seem to > be using the HarfBuzz rendering, why do we need Ghostscript at all? > > Thanks. > 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. --00000000000020b42905c94a9048 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Aug 11, 2021 at 5:11 PM Eli Z= aretskii <eliz@gnu.org> wrote:
> From: Anand T= amariya <atamar= iya@gmail.com>
> Date: Wed, 11 Aug 2021 10:02:03 +0530
> Cc: emacs-dev= el@gnu.org
>
> Printers use "postscriptname" defined in a font file while s= earching for fonts. psname.txt provides a sample
> of how to read that information from a font backend. It is not mandato= ry - but its presence will prevent nasty
> surprises. In its absence, Lisp code uses font file base name. If the = file name doesn't match
> postscriptname, printing might fail - "might" because printe= r will try its best to substitute a suitable font.
> Theoretically, there's no dependency except Ghostscript which does= most of the heavy lifting for printing in
> Emacs. Fonts other than Truetype might require additional configuratio= n as defined in Ghostscript manual.

Could you please point to the code which uses or requires Ghostscript,
I don't think I see it in the patch you sent.=C2=A0 And since you seem = to
be using the HarfBuzz rendering, why do we need Ghostscript at all?

Thanks.
Correction is in order - the screenshot/ rende= ring within Emacs requires Ghostscript. Printing to printer would use OS sp= ecific print commands e.g. lpr on *nix.
--00000000000020b42905c94a9048--