[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Basic WYSIWYG printing in GNU Emacs
From: |
Basil L. Contovounesios |
Subject: |
Re: Basic WYSIWYG printing in GNU Emacs |
Date: |
Sun, 13 Jun 2021 11:30:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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.
--
Basil