From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: BTW, if I want Emacs to support the CJK-EXT B Chinese Characters, must I use the arg --enable-font-backend? Date: Mon, 20 Nov 2006 17:14:26 +0900 Message-ID: References: <20061120041919.GA8024@localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1164010453 1211 80.91.229.2 (20 Nov 2006 08:14:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2006 08:14:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 20 09:14:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gm4Hx-0007ty-WA for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 09:14:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gm4Hx-0000mj-8Q for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 03:14:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gm4Hh-0000mK-UB for emacs-devel@gnu.org; Mon, 20 Nov 2006 03:13:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gm4Hg-0000lZ-UR for emacs-devel@gnu.org; Mon, 20 Nov 2006 03:13:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gm4Hg-0000lW-Qb for emacs-devel@gnu.org; Mon, 20 Nov 2006 03:13:44 -0500 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gm4Hf-0000AN-Lk for emacs-devel@gnu.org; Mon, 20 Nov 2006 03:13:44 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id kAK8Df8i011960; Mon, 20 Nov 2006 17:13:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp (mail.aist.go.jp [150.29.246.12]) by rqsmtp1.aist.go.jp with ESMTP id kAK8DfDS024982; Mon, 20 Nov 2006 17:13:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id kAK8DeEn012817; Mon, 20 Nov 2006 17:13:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1Gm4IM-0006iA-00; Mon, 20 Nov 2006 17:14:26 +0900 Original-To: Hongsheng In-reply-to: <20061120041919.GA8024@localdomain> (message from Hongsheng on Mon, 20 Nov 2006 12:19:19 +0800) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62542 Archived-At: In article <20061120041919.GA8024@localdomain>, Hongsheng writes: > Dear Kenichi, > If I want the Emacs to support CJK-EXT B Chinese characters, must I run the > Emacs with the argument: --enable-font-backend? Not necessarily. > I want to know whether it's possible to display the full unicode characters > with XLFD other than XFT? Technically it's possible but there's no standard way. First of all, I don't know if there's an agreement about what registry-encoding to use for an X font for Unicode SIP area. So here I assume that you somehow manage to get an X font whose registry-encoding part name is "iso10646-2". I can't tell how to make your TTF recognized by X server as such a font. Anyway, once you confirm that your font is working on X by, for instance, xfd as below: % xfd -fn .....-iso10646-2 what you have to do is this: (push '("iso10646-2$" . unicode-sip) font-encoding-alist) (set-fontset-font "fontset-default" 'han '(nil . "iso10646-2") 'append) --- Kenichi Handa handa@m17n.org