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 12:27:27 +0100 Message-ID: <484FB69F.2060200@gnu.org> References: <42b562540806060552q622e3dfvb35820ec28dc66d3@mail.gmail.com> <4849AAE4.4080404@gnu.org> <42b562540806061941p2c2d2ebfg734c2d7c4afbbd28@mail.gmail.com> <484F8E81.8050604@gnu.org> <42b562540806110351p699e4ad8l19b5841724eef431@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213183678 6903 80.91.229.12 (11 Jun 2008 11:27:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 11:27:58 +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 13:28:41 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 1K6OVM-00052I-As for ged-emacs-devel@m.gmane.org; Wed, 11 Jun 2008 13:28:40 +0200 Original-Received: from localhost ([127.0.0.1]:52731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6OUY-0000b2-Oy for ged-emacs-devel@m.gmane.org; Wed, 11 Jun 2008 07:27:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6OUT-0000aY-Pp for emacs-devel@gnu.org; Wed, 11 Jun 2008 07:27:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6OUS-0000Zx-CL for emacs-devel@gnu.org; Wed, 11 Jun 2008 07:27:45 -0400 Original-Received: from [199.232.76.173] (port=42550 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6OUS-0000Zu-6Z for emacs-devel@gnu.org; Wed, 11 Jun 2008 07:27:44 -0400 Original-Received: from mk-outboundfilter-5-a-2.mail.uk.tiscali.com ([212.74.114.4]:25279) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6OUR-0006wm-PI for emacs-devel@gnu.org; Wed, 11 Jun 2008 07:27:43 -0400 Original-X-Trace: 42369876/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: AqAEAOxST0hTQxds/2dsb2JhbACBW68v X-IronPort-AV: E=Sophos;i="4.27,623,1204502400"; d="scan'208";a="42369876" 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 12:27:36 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id ECE6B412; Wed, 11 Jun 2008 12:28:03 +0100 (BST) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <42b562540806110351p699e4ad8l19b5841724eef431@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:98941 Archived-At: Kevin Yu wrote: > Here's my font related configuration > > (set-language-environment "chinese-gb18030") > (set-frame-font "Monaco-10") > (set-fontset-font (frame-parameter nil 'font) > 'han '("Microsoft Yahei"."unicode-bmp")) > (set-fontset-font (frame-parameter nil 'font) > 'symbol '("Microsoft Yahei"."unicode-bmp")) > (set-fontset-font (frame-parameter nil 'font) > 'cjk-misc '("Microsoft Yahei"."unicode-bmp")) > (set-fontset-font (frame-parameter nil 'font) > 'bopomofo '("Microsoft Yahei"."unicode-bmp")) Thanks, I can reproduce the original problem with these settings. For the other problem (a different font being used even when Chinese characters display), you may need to use the localized font name of Microsoft Yahei. Maybe the following will tell you what that is, as I expect that Windows recognizes the ASCII names for fonts even if it outputs the localized name. (list-fonts (font-spec :family "Microsoft Yahei"))