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 13:40:26 +0100 Message-ID: <484FC7BA.7050307@gnu.org> References: <42b562540806060552q622e3dfvb35820ec28dc66d3@mail.gmail.com> <4849AAE4.4080404@gnu.org> <42b562540806061941p2c2d2ebfg734c2d7c4afbbd28@mail.gmail.com> <484F8E81.8050604@gnu.org> <42b562540806110351p699e4ad8l19b5841724eef431@mail.gmail.com> <484FB69F.2060200@gnu.org> <42b562540806110505t4ee63fecxa8f229d8c4ecd1ad@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213188073 22491 80.91.229.12 (11 Jun 2008 12:41:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 12:41:13 +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 14:41:56 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 1K6Pe3-0005ed-1b for ged-emacs-devel@m.gmane.org; Wed, 11 Jun 2008 14:41:43 +0200 Original-Received: from localhost ([127.0.0.1]:51567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6PdF-0005iW-Aj for ged-emacs-devel@m.gmane.org; Wed, 11 Jun 2008 08:40:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6PdA-0005hM-2H for emacs-devel@gnu.org; Wed, 11 Jun 2008 08:40:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6Pd8-0005f6-HN for emacs-devel@gnu.org; Wed, 11 Jun 2008 08:40:47 -0400 Original-Received: from [199.232.76.173] (port=51520 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6Pd8-0005ey-E3 for emacs-devel@gnu.org; Wed, 11 Jun 2008 08:40:46 -0400 Original-Received: from mk-outboundfilter-5-a-2.mail.uk.tiscali.com ([212.74.114.4]:60774) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6Pd8-00054h-1i for emacs-devel@gnu.org; Wed, 11 Jun 2008 08:40:46 -0400 Original-X-Trace: 42409341/mk-outboundfilter-5.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: AqAEALtkT0hTQxds/2dsb2JhbACBW68v X-IronPort-AV: E=Sophos;i="4.27,624,1204502400"; d="scan'208";a="42409341" 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 13:40:44 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 7028F412; Wed, 11 Jun 2008 13:41:04 +0100 (BST) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <42b562540806110505t4ee63fecxa8f229d8c4ecd1ad@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:98947 Archived-At: Kevin Yu wrote: > If I change font configuration to: > (set-frame-font "Monaco-10") > (set-fontset-font (frame-parameter nil 'font) > 'han (font-spec :family "Microsoft Yahei" :size 16)) > (set-fontset-font (frame-parameter nil 'font) > 'symbol (font-spec :family "Microsoft Yahei" :size 16)) > (set-fontset-font (frame-parameter nil 'font) > 'cjk-misc (font-spec :family "Microsoft Yahei" :size 16)) > (set-fontset-font (frame-parameter nil 'font) > 'bopomofo (font-spec :family "Microsoft Yahei" :size 16)) > > Emacs will use the right Chinese font. It seems the problem is using "unicode-bmp" for the registry. There are so many aliases for the unicode registry, and it seems that to work correctly, the w32 font backends need to explicitly recognize them all. I think things will work better with "iso10646-1", which the w32 font backends do recognize. > > (set-fontset-font (frame-parameter nil 'font) > > 'han '("Microsoft Yahei"."unicode-bmp")) >