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: Wed, 11 Jun 2008 09:36:17 +0100 Message-ID: <484F8E81.8050604@gnu.org> References: <42b562540806060552q622e3dfvb35820ec28dc66d3@mail.gmail.com> <4849AAE4.4080404@gnu.org> <42b562540806061941p2c2d2ebfg734c2d7c4afbbd28@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 1213173450 5904 80.91.229.12 (11 Jun 2008 08:37:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 08:37:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kevin Yu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 11 10:38:13 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 1K6LqM-0000We-OM for ged-emacs-devel@m.gmane.org; Wed, 11 Jun 2008 10:38:10 +0200 Original-Received: from localhost ([127.0.0.1]:48777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6LpX-0003vX-Sk for ged-emacs-devel@m.gmane.org; Wed, 11 Jun 2008 04:37:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6Loo-0003rn-0F for emacs-devel@gnu.org; Wed, 11 Jun 2008 04:36:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6Loj-0003qV-Uu for emacs-devel@gnu.org; Wed, 11 Jun 2008 04:36:31 -0400 Original-Received: from [199.232.76.173] (port=34511 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6Loi-0003pn-7O for emacs-devel@gnu.org; Wed, 11 Jun 2008 04:36:28 -0400 Original-Received: from mk-outboundfilter-3.mail.uk.tiscali.com ([212.74.114.23]:1852) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6Loh-00073H-T5 for emacs-devel@gnu.org; Wed, 11 Jun 2008 04:36:28 -0400 Original-X-Trace: 128913276/mk-outboundfilter-1.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: AqAEAOgqT0hTQxds/2dsb2JhbACBW68I X-IronPort-AV: E=Sophos;i="4.27,623,1204502400"; d="scan'208";a="128913276" 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; 11 Jun 2008 09:36:25 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 90BD7412; Wed, 11 Jun 2008 09:36:52 +0100 (BST) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <42b562540806061941p2c2d2ebfg734c2d7c4afbbd28@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:98929 Archived-At: Kevin Yu wrote: > character: ʵ (23454, #o55636, #x5b9e) > preferred charset: gb18030 (GB18030) > code point: 0xCAB5 > syntax: w which means: word > category: C:Chinese (Han) characters of 2-byte character sets c:Chinese > |:While filling, we can break a line at this character. > buffer code: #xE5 #xAE #x9E > file code: #xCA #xB5 (encoded by coding system chinese-gb18030-unix) > display: by this font (glyph code) > -outline- -normal-normal-normal-mono-13-*-*-*-c-*-gb2312.1980-0 (#x1172) > > Emacs displays the font family name as:"\320\302\313\316\314\345" This is a bug, but it should at least be consistent, as there is no encoding in either direction. > those octal bytes represent for "ÐÂËÎÌå", in fact it isn't the font I > tell emacs to choose for Chinese characters. How do you tell Emacs which font to use for Chinese characters? I am trying to reproduce the scenario here so I can see what is going wrong. > By the way, in the elisp manual, all localized strings are showed as > octal bytes, Here's an example: I don't see any localized strings in the elisp manual. Perhaps that is a problem with the version of makeinfo that you use to build them. It is not related to the font names, anyway. > > -outline-Monaco-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 > (#x03) > What does the following report if you press C-x C-e at the end of the line? (insert (prin1-to-string (list-fonts (font-spec :family "Monaco" :registry "iso8859-1"))))