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: emacs could not show this symbol. Date: Thu, 28 Feb 2008 16:01:59 +0100 Message-ID: References: <86ejb08qsv.fsf@freebsd.hasee.cpu> <86y798s6q8.fsf@freebsd.hasee.cpu> <86mypo9e3w.fsf@freebsd.hasee.cpu> <86mypmgcuh.fsf@freebsd.hasee.cpu> <86zltluu1w.fsf@freebsd.hasee.cpu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204210971 17019 80.91.229.12 (28 Feb 2008 15:02:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 15:02:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: anhnmncb Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 28 16:03:16 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 1JUkHl-0006PY-SF for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Feb 2008 16:03:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUkHF-0002YU-L2 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Feb 2008 10:02:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUkGu-0002TE-Kl for help-gnu-emacs@gnu.org; Thu, 28 Feb 2008 10:02:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUkGq-0002I9-Tj for help-gnu-emacs@gnu.org; Thu, 28 Feb 2008 10:02:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUkGq-0002Hk-P9 for help-gnu-emacs@gnu.org; Thu, 28 Feb 2008 10:02:04 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUkGq-0003YB-CD for help-gnu-emacs@gnu.org; Thu, 28 Feb 2008 10:02:04 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 300F6D0C9DEA; Thu, 28 Feb 2008 16:02:02 +0100 (CET) Original-Received: from [195.4.205.87] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JUkGn-0005Kt-00; Thu, 28 Feb 2008 16:02:02 +0100 In-Reply-To: <86zltluu1w.fsf@freebsd.hasee.cpu> X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+43GGQC5ldUKbE42xZDoassMQza85PmKRR8+ev N7AlJ/sC0JN9Or5AVbWdEnrvAeMZkNG5hhB2TX7TFU9hnte0BR UdY5jUp34qqqVs7r6PCw== X-detected-kernel: by monty-python.gnu.org: 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:51946 Archived-At: Am 28.02.2008 um 13:47 schrieb anhnmncb: > 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 I admit that I am not the font or fontset expert, I would have used here a gb2312.1980-0 encoded for the chinese-gb2312 encoding, a gb18030.2000-0 encoding for the gb18030 encoding, and a tis620-2 encoded font for the thai-tis620 encoding. For mule-unicode-0100-24ff encoding I would use a font that has more to offer than Monotype Courier, Lucida Sans Typewriter or DejaVu Sans Mono or Free Mono. Well, anyway, I should improve my own settings, too, and learn from this a bit. > 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")) Here above I would also check whether the font encodings match the GNU Emacs encodings. > (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")) You were constructing a "fontset-default" and then you're setting a "fontset-dejavu" to be used as default? I admit, documentation (particularly examples) of fontsets can be improved. > > Another question, maybe emacs.font-backend is enabled by default? You can check this easily by choosing "Send Bug Report..." from the Help menu. It will show the configure options used. And ldd (on GNU/ Linux) could tell you which to libraries GNU Emacs is linked. This can give you a hint of what it's able to use. > 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. See my comment above! > And many times emacs could not align a line correctly, Because you are using monospaced and proportionally spaced fonts in your fontsets: *-*-p-*-iso10646-1 *-*-m-*-iso10646-1 -- Greetings Pete Mac OS X is like a wigwam: no fences, no gates, but an apache inside.