From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anhnmncb Newsgroups: gmane.emacs.help Subject: Re: emacs could not show this symbol. Date: Thu, 28 Feb 2008 20:47:23 +0800 Organization: Bentium Ltd. (CN99) Message-ID: <86zltluu1w.fsf@freebsd.hasee.cpu> References: <86ejb08qsv.fsf@freebsd.hasee.cpu> <86y798s6q8.fsf@freebsd.hasee.cpu> <86mypo9e3w.fsf@freebsd.hasee.cpu> <86mypmgcuh.fsf@freebsd.hasee.cpu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204206131 30635 80.91.229.12 (28 Feb 2008 13:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 13:42:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 28 14:42:33 2008 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 1JUj1t-0007iO-3f for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Feb 2008 14:42:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUj1M-0002gC-LL for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Feb 2008 08:42:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsgate.cuhk.edu.hk!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 63 Original-NNTP-Posting-Host: 221.6.39.130 Original-X-Trace: news.cn99.com 1204208236 5332 221.6.39.130 (28 Feb 2008 14:17:16 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Thu, 28 Feb 2008 14:17:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:zBEzYW6e49s0rV6gZppJAwd9M1I= Original-Xref: shelby.stanford.edu gnu.emacs.help:156570 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:51938 Archived-At: Thanks peter_dyballa for your very patient answer! Pardon for my terrible English, I tried my best to make my expression clear. Now I have resolved the problem though don't know why :) I use this configuration in .Xdefaults: --------------------------x----------------------------x-------------------------------- Emacs.Fontset-0: \ -misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu,\ chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1,\ chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1,\ gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*-iso10646-1,\ thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1,\ mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m-*-iso10646-1 Emacs.Font: fontset-dejavu --------------------------x----------------------------x-------------------------------- And this in .emacs: --------------------------x----------------------------x-------------------------------- (create-fontset-from-fontset-spec (concat "-misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu," "chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1," "chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1," "gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*-iso10646-1," "thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1," "mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m-*-iso10646-1")) (set-fontset-font (frame-parameter nil 'font) 'han '("Microsoft YaHei" . "unicode-bmp")) (set-fontset-font (frame-parameter nil 'font) 'cjk-misc '("Microsoft Yahei" . "unicode-bmp")) (set-fontset-font (frame-parameter nil 'font) 'gb18030 '("Microsoft Yahei". "unicode-bmp")) (set-fontset-font "fontset-default" 'gb18030 '("WenQuanYi Zen Hei". "unicode-bmp")) (set-fontset-font "fontset-default" 'mule-unicode-0100-24ff '("Courier New". "unicode-bmp")) (set-fontset-font "fontset-default" 'thai "-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1") (set-default-font "fontset-dejavu") (add-to-list 'default-frame-alist '(font . "fontset-dejavu")) --------------------------x----------------------------x-------------------------------- Now emacs could use fixed and dejavu for those symbols. Another question, maybe emacs.font-backend is enabled by default? I comment it and find that xft is going on well. Don't know what's the most correct way to configure fontset for xft emacs, although I tell emacs to use fontset-dejavu, I find that emacs doesn't use this fontset actually. And many times emacs could not align a line correctly, for example, in my bookmark buffer, it shows: .emacs ~/.emacs equation.tex ~/doc/work/pk/equation.tex tip-font /usr/home/anhnmncb/doc/tips/tip-font tip-words-pro ~/doc/tips/tip-words-pro So weird for me! Anyway, now emacs can display most of the symbols. -- Regards, anhnmncb gpg key: 44A31344