From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Miles Bader <miles@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: A patch for enforcing double-width CJK character display
Date: Tue, 17 Apr 2012 11:30:36 +0900
Message-ID: <87ipgzjdir.fsf@catnip.gol.com>
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>
	<jwvehrspu5f.fsf-monnier+emacs@gnu.org>
	<4F8782C8.2030005@i-soft.com.cn>
	<jwvwr5j4vbr.fsf-monnier+emacs@gnu.org>
	<87d379h971.fsf@catnip.gol.com> <m27gxhm0za.fsf@gmail.com>
	<877gxghc3d.fsf@catnip.gol.com> <4F8B6D0F.2050700@i-soft.com.cn>
	<buohawk9rg3.fsf@dhlpc061.dev.necel.com>
	<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>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: dough.gmane.org 1334629857 10767 80.91.229.3 (17 Apr 2012 02:30:57 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Tue, 17 Apr 2012 02:30:57 +0000 (UTC)
Cc: emacs-devel@gnu.org
To: =?utf-8?B?6buE5bu65b+g?= <jianzhong.huang@i-soft.com.cn>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 04:30:56 2012
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1SJyBx-000237-BT
	for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 04:30:53 +0200
Original-Received: from localhost ([::1]:35723 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1SJyBw-0004Vc-JR
	for ged-emacs-devel@m.gmane.org; Mon, 16 Apr 2012 22:30:52 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:37720)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJyBq-0004VL-OK
	for emacs-devel@gnu.org; Mon, 16 Apr 2012 22:30:50 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJyBm-0003vx-2f
	for emacs-devel@gnu.org; Mon, 16 Apr 2012 22:30:46 -0400
Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:56654)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>)
	id 1SJyBl-0003vS-PD; Mon, 16 Apr 2012 22:30:41 -0400
Original-Received: from 61.245.22.233.eo.eaccess.ne.jp ([61.245.22.233]
	helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku)
	(envelope-from <miles@gnu.org>)
	id 1SJyBh-0002Hn-KG; Tue, 17 Apr 2012 11:30:37 +0900
Original-Received: by catnip.gol.com (Postfix, from userid 1000)
	id 8C21BDFC1; Tue, 17 Apr 2012 11:30:36 +0900 (JST)
System-Type: x86_64-unknown-linux-gnu
In-Reply-To: <4F8CCEB2.4060001@i-soft.com.cn> (=?utf-8?B?Ium7hOW7uuW/oCIn?=
	=?utf-8?B?cw==?= message of "Tue, 17 Apr 2012 10:00:18 +0800")
Original-Lines: 26
X-Virus-Scanned: ClamAV GOL (outbound)
X-Abuse-Complaints: abuse@gol.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 203.216.5.74
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=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:149713
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/149713>

=E9=BB=84=E5=BB=BA=E5=BF=A0 <jianzhong.huang@i-soft.com.cn> writes:
>>> case 1: size =3D 13
>>> ASCII:	Lucida Sans Typewriter	[9 pix per char]
>>> CJK:	=E3=81=95=E3=81=96=E3=81=AA=E3=81=BF=E6=98=8E=E6=9C=9D		[12 pix pe=
r char]
>>>
>>> case 2: size =3D 11
>>> ASCII:	Lucida Sans Typewriter	[7 pix per char]
>>> CJK:	=E3=81=95=E3=81=96=E3=81=AA=E3=81=BF=E6=98=8E=E6=9C=9D		[10 pix pe=
r 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... :]

-miles

--=20
`Suppose Korea goes to the World Cup final against Japan and wins,' Moon sa=
id.
`All the past could be forgiven.'   [NYT]