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 10:02:03 +0530 Message-ID: References: <83y299fpmh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000045c69405c9411ae5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35573"; 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 06:32: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 1mDfv8-00098H-O7 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 06:32:50 +0200 Original-Received: from localhost ([::1]:42456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDfv7-0001w0-2k for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 00:32:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDfub-0001HU-H4 for emacs-devel@gnu.org; Wed, 11 Aug 2021 00:32:17 -0400 Original-Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]:41920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDfua-0003ti-25; Wed, 11 Aug 2021 00:32:17 -0400 Original-Received: by mail-il1-x130.google.com with SMTP id j18so1475485ile.8; Tue, 10 Aug 2021 21:32:15 -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=EojdSWA3uROJgTFjauP2OdgH3spdJrk2LfCtP7H3aYU=; b=J5OUnnCAfARxynUvlbH1nMACmMnJrNrfmQZ3Hn1TOM0UcAKFMg3y1pKlwaKGMmT+YG ZbmFTiaLW8+6sGyea+WNKOujFKyVpPz5hRB7tsBxViV5jZshgkheISNG+J1rDh5lIwnd a3VXwKnehJ6fjz461CxuW3xHlxc3Gc0dquxSOhMj41AuXfVhOgxEY7AjUsxOGoikGMr7 7xU1yPww+YJeIIY3RSVtzfsubDFWvcIJnGMJYExjUq5hfDFCBs45RMeCSFJUhu7qrHKX g8TaVs9Pt+CJa8T8Pqv8fi/GCWZCpFHTux61M70/Yx+vEbnvEwrBDStEhUAZ5xsLvShL OD2g== 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=EojdSWA3uROJgTFjauP2OdgH3spdJrk2LfCtP7H3aYU=; b=H3Li/mDV5M8SQtmOkzRSeyS2x1v1bInYACDAfb2Rn9nj2531sKfZrVsnDgXD1d29lZ 0qbKun6bOSfpeBYQStu5PizIufUA+ej1vgMpKebqZ0e66nndO5ORtmd96nl4/Yr2eB7Q 154zDrLzEN0ntyQH/Q7kXmtk5wKLPVkvMm4ej/GaEMqbAlK1PHF3EH1Pm4VNglRnu/ly 8iojEdCruMU/3I3Cq3/17OujFsd93CWERzsFpo/bQQtpkYnyEZKj2Wsf/2IrIfUD+Kz+ PvnXx/qNsDZnetDVeln0zQ5LeHtp9TgfqRgWZKeGD86l9hRHMevIkTQEAe3pZGgb69b0 +WvA== X-Gm-Message-State: AOAM530uLWMI3bRkk66ibzdDETOa/a1i4W1bhkxp+DHWXFT+6zfLXhsR IBR8uwQUTMKIuyg7qxlXaVvuc5OhEnWcp9Mla1BEr12ZwEo= X-Google-Smtp-Source: ABdhPJxcrJ94QXKLEkflfojDHa+1q+dxTrCP0djbGGGZwcp+4hG/4Di/2TElLIOwCVNiq6LrzNc/yN0/mHgwGCAueEw= X-Received: by 2002:a05:6e02:111:: with SMTP id t17mr206159ilm.62.1628656334389; Tue, 10 Aug 2021 21:32:14 -0700 (PDT) In-Reply-To: <83y299fpmh.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::130; envelope-from=atamariya@gmail.com; helo=mail-il1-x130.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:272310 Archived-At: --00000000000045c69405c9411ae5 Content-Type: text/plain; charset="UTF-8" > Thanks, but can you tell a few words about the prerequisites and > limitations? For example, it sounds like this requires a Cairo build > and the use of the ftcrhb font backend -- is this a requirement, or > should it be possible to make it work with other font backends as > well? Also, are there any assumptions or requirements regarding the > fonts installed on the system? > 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. --00000000000045c69405c9411ae5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thanks, but can you tell a few words about the prerequisites and
limitations?=C2=A0 For example, it sounds like this requires a Cairo build<= br> and the use of the ftcrhb font backend -- is this a requirement, or
should it be possible to make it work with other font backends as
well?=C2=A0 Also, are there any assumptions or requirements regarding the fonts installed on the system?
Printers use "post= scriptname" defined in a font file while searching for fonts. psname.t= xt provides a sample of how to read that information from a font backend. I= t 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 m= atch 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 addi= tional configuration as defined in Ghostscript manual.
--00000000000045c69405c9411ae5--