help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: print with DejaVu font from emacs


From: Peter Dyballa
Subject: Re: print with DejaVu font from emacs
Date: Mon, 9 Nov 2009 17:36:12 +0100


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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]