From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: harven <harven@free.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: print with DejaVu font from emacs
Date: Mon, 9 Nov 2009 17:36:12 +0100 [thread overview]
Message-ID: <0AB07BED-29E5-4E10-8830-6FBD497BED31@Web.DE> (raw)
In-Reply-To: <874op3iu85.fsf@ergodik.univ-brest.fr>
Am 09.11.2009 um 16:38 schrieb harven:
> I recently switched to emacs23.1.1 and the unicode support is great.
> I use the default DejaVuSansMono font in emacs, but when I try to do
> a ps-print-buffer or ps-spool-buffer, it uses the Courier font.
> Thus the result is disappointing because Courier does not support
> a lot of unicode characters.
In Unicode forget ps-print-<whatever>! PostScript only handles
encodings of 256 elements (and with some difficulty also CJK fonts
with thousands of code points). What you need is a conversion from
text to Unicode encoded HTML which then can easily be handled by your
OS or desktop.
Htmlize.el by Hrvoje Nikšić: http://fly.srk.fer.hr/~hniksic/emacs/
htmlize.el. A sample of its capabilities can be seen here: http://
fly.srk.fer.hr/~hniksic/emacs/htmlize.el.html – missing some CJK and
other non-Latin content. Lennart Borgman's htmlize-view.el helps a
bit to handle printing (http://piprim.tuxfamily.org/home/pi/emacs.d/
site-lisp/htmlize-view.el).
So using DejaVu in the buffer will produce HTML output using the same
fonts which then can be converted to PDF for the purpose of printing,
still using DejaVu.
--
Greetings
Pete
Give a man a fish, and you've fed him for a day. Teach him to fish,
and you've depleted the lake.
next prev parent reply other threads:[~2009-11-09 16:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-09 15:38 print with DejaVu font from emacs harven
2009-11-09 16:36 ` Peter Dyballa [this message]
[not found] ` <mailman.10350.1257784601.2239.help-gnu-emacs@gnu.org>
2009-11-11 16:12 ` harven
2009-11-11 19:23 ` Peter Dyballa
[not found] ` <mailman.10521.1257967402.2239.help-gnu-emacs@gnu.org>
2009-11-11 21:43 ` harven
2009-11-11 23:10 ` Peter Dyballa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0AB07BED-29E5-4E10-8830-6FBD497BED31@Web.DE \
--to=peter_dyballa@web.de \
--cc=harven@free.fr \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.