unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: Dov Grobgeld <dov.grobgeld@gmail.com>,
	Anand Tamariya <atamariya@gmail.com>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: Basic WYSIWYG printing in GNU Emacs
Date: Sun, 13 Jun 2021 14:04:17 +0300	[thread overview]
Message-ID: <YMXmMQ6alsZPCMPc@protected.localdomain> (raw)
In-Reply-To: <87sg1mjbuu.fsf@tcd.ie>

* Basil L. Contovounesios <contovob@tcd.ie> [2021-06-13 13:31]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > * Dov Grobgeld <dov.grobgeld@gmail.com> [2021-06-13 11:02]:
> >> I think you would get much better international support if you combine
> >> the emacs printing with my utf8-to-ps (or pdf or svg) program paps.
> >> See: https://github.com/dov/paps . paps support "Pango Markup" so if
> >> you convert emacs faces to pango markup, you can multi face and color
> >> output.
> >> 
> >> Thinking about it since emacs is gtk based these days, it has pango
> >> and cairo as implicit dependencies, so if these libraries were exposed
> >> through the emacs lisp api, it would be possible to write a
> >> replacement for paps in emacs. :-)
> >
> > Such good idea.
> >
> > I would like proper printing in Emacs, I guess that I have to research
> > the function `ps-mule-begin-job' to see how it converts faces to PS
> > first, to convert it to pango markup.
> 
> FWIW, when Emacs is built against an appropriately configured Cairo, the
> function x-export-frames can export visible Emacs frames (not just the
> buffer contents) to PDF, PS, PNG, or SVG.

Nice function and useful for screenshots. 

Just that it is not related to printing buffer text. It shows only the
frame as image.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



  reply	other threads:[~2021-06-13 11:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-12  3:46 Basic WYSIWYG printing in GNU Emacs Anand Tamariya
2021-06-12  4:07 ` Jean Louis
2021-06-13  5:32   ` Anand Tamariya
2021-06-13  8:01     ` Dov Grobgeld
2021-06-13  9:43       ` Jean Louis
2021-06-13 10:30         ` Basil L. Contovounesios
2021-06-13 11:04           ` Jean Louis [this message]
2021-06-13 10:18       ` Jean Louis
2021-06-16 13:35         ` Filipp Gunbin
2021-06-13 11:07       ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YMXmMQ6alsZPCMPc@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=atamariya@gmail.com \
    --cc=contovob@tcd.ie \
    --cc=dov.grobgeld@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).