From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: James Cloos <cloos@jhcloos.com>
Newsgroups: gmane.emacs.devel
Subject: Re: A patch for enforcing double-width CJK character display
Date: Tue, 17 Apr 2012 05:07:44 -0400
Message-ID: <m3y5pusp3b.fsf@carbon.jhcloos.org>
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>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: dough.gmane.org 1334654536 9235 80.91.229.3 (17 Apr 2012 09:22:16 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Tue, 17 Apr 2012 09:22:16 +0000 (UTC)
Cc: =?utf-8?B?6buE5bu65b+g?= <jianzhong.huang@i-soft.com.cn>,
	Miles Bader <miles@gnu.org>
To: emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 11:22:11 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 1SK4bx-0006G5-6b
	for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 11:22:09 +0200
Original-Received: from localhost ([::1]:60595 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 1SK4bw-0007lV-F5
	for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 05:22:08 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:50527)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1SK4bp-0007kb-0q
	for emacs-devel@gnu.org; Tue, 17 Apr 2012 05:22:06 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1SK4bi-00013g-Os
	for emacs-devel@gnu.org; Tue, 17 Apr 2012 05:22:00 -0400
Original-Received: from eagle.jhcloos.com ([207.210.242.212]:59818)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>)
	id 1SK4bi-00013V-Dg; Tue, 17 Apr 2012 05:21:54 -0400
Original-Received: by eagle.jhcloos.com (Postfix, from userid 10)
	id ED5E240209; Tue, 17 Apr 2012 09:21:26 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com;
	s=eagle; t=1334654511;
	bh=DhP4OFhUvnt+fUgsakQh15QfzkQUHSEC76uTtTifSCI=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	MIME-Version:Content-Type;
	b=og7ggYO4v6dIcalq4nmrimUqrQqy8E2bhqtUzpZbZw2YK1vcTnLNufRc1zv26L9V1
	a4cjHPoAm7aAbQEsE4lGEn984l8Y6wVXvUUN3A9bYbuuDt554ppeODgRi8yQWGOAss
	xw+/vY9ZR3nKwkcygYhcDUXauT3p2JiWOsjeJGfE=
Original-Received: by carbon.jhcloos.org (Postfix, from userid 500)
	id 5510336004B; Tue, 17 Apr 2012 09:07:44 +0000 (UTC)
In-Reply-To: <873983kx7u.fsf@catnip.gol.com> (Miles Bader's message of "Tue,
	17 Apr 2012 09:39:49 +0900")
User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3
	AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu
	QmCC
Copyright: Copyright 2012 James Cloos
OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Original-Lines: 25
X-Hashcash: 1:30:120417:emacs-devel@gnu.org::Zo1cNCfXuBiKa/C3:000000000000000000000000000000000000000000pajs
X-Hashcash: 1:30:120417:jianzhong.huang@i-soft.com.cn::YjKaKqt6FpUq26B4:0000000000000000000000000000000ZmILS
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 207.210.242.212
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:149728
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/149728>

>>>>> "MB" == Miles Bader <miles@gnu.org> 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.

(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
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6