From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Ntemacs chooses wrong font. Date: Fri, 06 Jun 2008 22:23:48 +0100 Message-ID: <4849AAE4.4080404@gnu.org> References: <42b562540806060552q622e3dfvb35820ec28dc66d3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1212787465 6959 80.91.229.12 (6 Jun 2008 21:24:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 21:24:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kevin Yu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 06 23:25:07 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4jQl-0004xM-Cb for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2008 23:25:03 +0200 Original-Received: from localhost ([127.0.0.1]:42365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4jPy-0003DC-Hj for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2008 17:24:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4jPg-0002yQ-97 for emacs-devel@gnu.org; Fri, 06 Jun 2008 17:23:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4jPe-0002ww-9c for emacs-devel@gnu.org; Fri, 06 Jun 2008 17:23:55 -0400 Original-Received: from [199.232.76.173] (port=43069 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4jPe-0002wr-3g for emacs-devel@gnu.org; Fri, 06 Jun 2008 17:23:54 -0400 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]:16542) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4jPd-0004lw-W8 for emacs-devel@gnu.org; Fri, 06 Jun 2008 17:23:54 -0400 Original-X-Trace: 92871943/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAEdISUhTQxds/2dsb2JhbACBVq9E X-IronPort-AV: E=Sophos;i="4.27,602,1204502400"; d="scan'208";a="92871943" X-IP-Direction: IN Original-Received: from i-83-67-23-108.freedom2surf.net (HELO wanchan.jasonrumney.net) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP; 06 Jun 2008 22:23:52 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 90CCE412; Fri, 6 Jun 2008 22:23:56 +0100 (BST) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <42b562540806060552q622e3dfvb35820ec28dc66d3@mail.gmail.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=8086879D X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:98544 Archived-At: Kevin Yu wrote: > If you input any Chinese into a new buffer, Ntemacs will use the same > font as ASCII characters (iso8859-1). Of course that font is not > suitable for Chinese, so I get only white spaces on the window. > describe-char shows that emacs has detected that it's a Chinese > character, but chosen a wrong font(wrong charset): > character: สต (23454, #o55636, #x5b9e) > preferred charset: gb18030 (GB18030) > code point: 0xCAB5 > -outline-Monaco-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x03) Another font that maps unsupported glyphs to 0x03 instead of 0x00. DejaVu Sans Mono seems to do this too. Perhaps it is common amongst truetype fonts that were not designed for Windows. > if I open a existed file with Chinese characters, everything goes well. Can you show the output you get from C-u C-x = in that case? It seems strange that a different font would be used for the two cases. Perhaps comparing the two outputs will give some clues.