From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?6buE5bu65b+g?= Newsgroups: gmane.emacs.devel Subject: Re: A patch for enforcing double-width CJK character display Date: Tue, 17 Apr 2012 11:00:49 +0800 Message-ID: <4F8CDCE1.8030109@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> <4F8CCEB2.4060001@i-soft.com.cn> <87ipgzjdir.fsf@catnip.gol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1334631683 20967 80.91.229.3 (17 Apr 2012 03:01:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 03:01:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 05:01:22 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 1SJyfS-0005Vp-7b for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 05:01:22 +0200 Original-Received: from localhost ([::1]:38468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJyfR-0007md-MJ for ged-emacs-devel@m.gmane.org; Mon, 16 Apr 2012 23:01:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJyfK-0007mM-VA for emacs-devel@gnu.org; Mon, 16 Apr 2012 23:01:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJyfG-0005XL-PZ for emacs-devel@gnu.org; Mon, 16 Apr 2012 23:01:14 -0400 Original-Received: from mta319.sina.net ([202.108.3.196]:30237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJyfG-0005WX-5Y; Mon, 16 Apr 2012 23:01:10 -0400 X-Originating-IP: [218.240.45.242] Original-Received: from unknown (HELO mta319.sina.net) ([10.54.5.138]) by irxd5-209.sina.net with ESMTP; 17 Apr 2012 11:00:57 +0800 Original-Received: by smtp-5-138.sina.net (SINAMAIL, from userid 1058) id 8E4A9B25E7; Tue, 17 Apr 2012 11:00:56 +0800 (CST) Original-Received: from piggy.pure64.org (unknown [218.240.45.242]) by smtp-5-138.sina.net (SINAMAIL) with ESMTPA id 5586FB25DF; Tue, 17 Apr 2012 11:00:56 +0800 (CST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120327 Thunderbird/10.0.2 In-Reply-To: <87ipgzjdir.fsf@catnip.gol.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.108.3.196 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:149714 Archived-At: 于 2012年04月17日 10:30, Miles Bader 写道: > 黄建忠 writes: >>>> case 1: size = 13 >>>> ASCII: Lucida Sans Typewriter [9 pix per char] >>>> CJK: さざなみ明朝 [12 pix per char] >>>> >>>> case 2: size = 11 >>>> ASCII: Lucida Sans Typewriter [7 pix per char] >>>> CJK: さざなみ明朝 [10 pix per char] >> 1, If you use Sans font as default font, the patch will just ignore it >> and never adjust the width padding , since it is wrong setting. >> >> 2, For Sans font, it's variable pitch, every glyph in the font is >> different width. > It's "Lucida Sans Typewriter", which is a fixed-pitch font. > >> So I'm wondering how you get the pixelsize of fonts? > I used "xzoom" to magnify the display, and counted the pixels... :] Wow :-D But a wrong way to get pixelsize:-( You have a very BIG BIG BIG misunderstanding of "glyph pixelsize". Font glyph may leave space around it, so the pixelsize of a font reported by font rendering subsystem is not just as what it looks, the space already there should not be dropped. I explained it when I tried "kiloji" font. as your assumption, the "kiloji" font would have a big problem with this fix, but it didn't. > > -miles > -- Huang JianZhong