From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?GB2312?B?u8a9qNbS?= Newsgroups: gmane.emacs.devel Subject: Re: A patch for enforcing double-width CJK character display Date: Tue, 17 Apr 2012 17:27:34 +0800 Message-ID: <4F8D3786.6090709@i-soft.com.cn> References: <4F85A138.6090900@i-soft.com.cn> <87vcl646c7.fsf@isil.kanru.info> <4F85AE69.9050002@i-soft.com.cn> <4F8698B0.2030703@i-soft.com.cn> <83hawp46p7.fsf@gnu.org> <4F86BA0F.4080301@i-soft.com.cn> <83ehrt3u0p.fsf@gnu.org> <4F87173F.3070801@i-soft.com.cn> <4F8782C8.2030005@i-soft.com.cn> <87d379h971.fsf@catnip.gol.com> <877gxghc3d.fsf@catnip.gol.com> <4F8B6D0F.2050700@i-soft.com.cn> <4F8BB0D3.6060202@i-soft.com.cn> <4F8BBE1F.9080701@i-soft.com.cn> <87sjg3kygc.fsf@catnip.gol.com> <873983kx7u.fsf@catnip.gol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1334654880 11640 80.91.229.3 (17 Apr 2012 09:28:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 09:28:00 +0000 (UTC) Cc: Miles Bader , emacs-devel@gnu.org To: James Cloos Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 11:27:59 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SK4hZ-0002Cy-Mn for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 11:27:57 +0200 Original-Received: from localhost ([::1]:36395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK4hY-0001dc-RS for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 05:27:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK4hT-0001d4-RE for emacs-devel@gnu.org; Tue, 17 Apr 2012 05:27:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SK4hN-0002w4-Ah for emacs-devel@gnu.org; Tue, 17 Apr 2012 05:27:51 -0400 Original-Received: from mta319.sina.net ([202.108.3.135]:40119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK4hM-0002tt-T6; Tue, 17 Apr 2012 05:27:45 -0400 X-Originating-IP: [218.240.45.242] Original-Received: from unknown (HELO mta319.sina.net) ([10.54.5.137]) by irxd5-207.sina.net with ESMTP; 17 Apr 2012 17:27:37 +0800 Original-Received: by smtp-5-137.sina.net (SINAMAIL, from userid 6663) id C1931353079; Tue, 17 Apr 2012 17:27:37 +0800 (CST) Original-Received: from piggy.pure64.org (unknown [218.240.45.242]) by smtp-5-137.sina.net (SINAMAIL) with ESMTPA id A0B92353064; Tue, 17 Apr 2012 17:27:36 +0800 (CST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120327 Thunderbird/10.0.2 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.108.3.135 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149729 Archived-At: 于 2012年04月17日 17:07, James Cloos 写道: >>>>>> "MB" == Miles Bader writes: > MB> p.s. "size" here is what Emacs "C-u C-x =" reports, which is _not_ the > MB> same as the sizes used in the Emacs font dialog... [kinda annoying, that...] > > If that means the size in the XLFD-ish string after "display: by this > font" in the C-u C-x = buffer, that looks to be the pixelheight. Yes, for xftfont backend, these properties is set according to FcPattern when "xftfont_open" invoked. The number here is "FC_PIXEL_SIZE" from a FcPattern. > > (In my case I get: > > xft:-unknown-WenQuanYi Zen Hei-normal-normal-normal-*-21-*-*-*-*-0-iso10646-1 (#x7390) > > for the first character in the CC header above.) > > The font dialog probably wants the point size. > > Things would be easier were Emacs to drop the XLFD-style strings > for xft: and/or fc: prefixed fonts and use fontconfig patterns. > > The XLFD-style strings only should be used for actual XLFDs for > X11 server-side fonts. > > -JimC -- Huang JianZhong