From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: print with DejaVu font from emacs Date: Mon, 9 Nov 2009 17:36:12 +0100 Message-ID: <0AB07BED-29E5-4E10-8830-6FBD497BED31@Web.DE> References: <874op3iu85.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257786586 11319 80.91.229.12 (9 Nov 2009 17:09:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2009 17:09:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: harven Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 09 18:09:33 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N7XkC-0001Lu-9W for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Nov 2009 18:09:32 +0100 Original-Received: from localhost ([127.0.0.1]:55841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7XkB-00083X-Fn for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Nov 2009 12:09:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7XEH-0004Um-NH for help-gnu-emacs@gnu.org; Mon, 09 Nov 2009 11:36:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7XEA-0004Sh-5n for help-gnu-emacs@gnu.org; Mon, 09 Nov 2009 11:36:30 -0500 Original-Received: from [199.232.76.173] (port=34680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7XE7-0004RX-7i for help-gnu-emacs@gnu.org; Mon, 09 Nov 2009 11:36:23 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:47445) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7XE6-0005AR-Qr for help-gnu-emacs@gnu.org; Mon, 09 Nov 2009 11:36:23 -0500 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 3AAFA131AFE60; Mon, 9 Nov 2009 17:36:15 +0100 (CET) Original-Received: from [91.35.245.209] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #314) id 1N7XDz-0006N3-00; Mon, 09 Nov 2009 17:36:15 +0100 In-Reply-To: <874op3iu85.fsf@ergodik.univ-brest.fr> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18N7m70o1gi721Nw1lEUg5EkCCEocvj21USk5Zj o4VLE/R6alsvssPO+8tXz6aHuamEcYdibSTQBLtUasOTJgD3+y Plst1rVtP/zn9Je+N3NA== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69628 Archived-At: 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-! PostScript only handles =20 encodings of 256 elements (and with some difficulty also CJK fonts =20 with thousands of code points). What you need is a conversion from =20 text to Unicode encoded HTML which then can easily be handled by your =20= OS or desktop. Htmlize.el by Hrvoje Nik=C5=A1i=C4=87: = http://fly.srk.fer.hr/~hniksic/emacs/=20 htmlize.el. A sample of its capabilities can be seen here: http://=20 fly.srk.fer.hr/~hniksic/emacs/htmlize.el.html =E2=80=93 missing some CJK = and =20 other non-Latin content. Lennart Borgman's htmlize-view.el helps a =20 bit to handle printing (http://piprim.tuxfamily.org/home/pi/emacs.d/=20 site-lisp/htmlize-view.el). So using DejaVu in the buffer will produce HTML output using the same =20= fonts which then can be converted to PDF for the purpose of printing, =20= still using DejaVu. -- Greetings Pete Give a man a fish, and you've fed him for a day. Teach him to fish, =20 and you've depleted the lake.