GNU bug report logs - #10179
24.0.91; enforcing double-width CJK character display

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Kan-Ru Chen <kanru@HIDDEN>; dated Thu, 1 Dec 2011 13:28:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 10179 <at> debbugs.gnu.org:


Received: (at 10179) by debbugs.gnu.org; 1 Dec 2011 20:08:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 15:08:55 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RWCw3-0002yD-S4
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2011 15:08:55 -0500
Received: from mailout-de.gmx.net ([213.165.64.22])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <werner.lemberg@HIDDEN>) id 1RWCw1-0002y5-OL
	for 10179 <at> debbugs.gnu.org; Thu, 01 Dec 2011 15:08:46 -0500
Received: (qmail invoked by alias); 01 Dec 2011 20:08:34 -0000
Received: from 77.118.253.163.wireless.dyn.drei.com (EHLO localhost)
	[77.118.253.163]
	by mail.gmx.net (mp050) with SMTP; 01 Dec 2011 21:08:34 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1/1rVQ9CR/1sQneM+4LXjuQBW2MXUX0cavw0fXS/J
	nR2IvY3ws8/6U0
Date: Thu, 01 Dec 2011 21:08:29 +0100 (CET)
Message-Id: <20111201.210829.518225611.wl@HIDDEN>
To: kanru@HIDDEN
Subject: Re: bug#10179: 24.0.91; enforcing double-width CJK character display
From: Werner LEMBERG <wl@HIDDEN>
In-Reply-To: <87ipm04e48.fsf@HIDDEN>
References: <87ipm04e48.fsf@HIDDEN>
X-Mailer: Mew version 6.4rc1 on Emacs 24.0.92.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 10179
Cc: 10179 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)


Just to have the wishes directly visible in this bug report:

Another important parameter to configure is glyph padding since
scaling makes Emacs display CJK characters very slowly on X11 (before
the glyphs get cached).  Additionally, lines with such scaled glyphs
become too high, causing irregular line spacing.


    Werner




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10179; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Dec 2011 13:27:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 08:27:07 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RW6fK-0000gw-QJ
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2011 08:27:07 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <ckanru@HIDDEN>) id 1RW6fI-0000gp-W6
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2011 08:27:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ckanru@HIDDEN>) id 1RW6f4-0005nP-Is
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2011 08:26:56 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:40802)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ckanru@HIDDEN>) id 1RW6f4-0005nC-Bt
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2011 08:26:50 -0500
Received: from eggs.gnu.org ([140.186.70.92]:36561)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ckanru@HIDDEN>) id 1RW6ey-0005EB-Mv
	for bug-gnu-emacs@HIDDEN; Thu, 01 Dec 2011 08:26:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ckanru@HIDDEN>) id 1RW6es-0005gj-Nf
	for bug-gnu-emacs@HIDDEN; Thu, 01 Dec 2011 08:26:44 -0500
Received: from mail-gx0-f169.google.com ([209.85.161.169]:64586)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ckanru@HIDDEN>) id 1RW6es-0005ga-KF
	for bug-gnu-emacs@HIDDEN; Thu, 01 Dec 2011 08:26:38 -0500
Received: by ggnq4 with SMTP id q4so2168319ggn.0
	for <bug-gnu-emacs@HIDDEN>; Thu, 01 Dec 2011 05:26:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=sender:from:to:subject:date:message-id:mime-version:content-type;
	bh=M94X1KLsost9W/x59x7B2ObqExOrrBWW5fjdnoWUnak=;
	b=usw1+NG549+sMVbaD5sVGL42ghWZKuDVduuCIT+Dmis3eTjLHSpOoyqHNCy8qoiUXe
	r+IPpgcOGNiin6jEPLE3OKMGFoAz4txB4OTFYY47HdTFz2aKaWoJiByczroXpO5Rcu6f
	BADv9rGYgFqzwbIC71Fm73omzFOd/A0YNrXXA=
Received: by 10.236.186.2 with SMTP id v2mr11397059yhm.83.1322745996671;
	Thu, 01 Dec 2011 05:26:36 -0800 (PST)
Received: from isil.kanru.info (61-228-155-84.dynamic.hinet.net.
	[61.228.155.84])
	by mx.google.com with ESMTPS id h28sm15236580ani.17.2011.12.01.05.26.34
	(version=TLSv1/SSLv3 cipher=OTHER);
	Thu, 01 Dec 2011 05:26:35 -0800 (PST)
Received: from localhost.localdomain ([127.0.0.1] helo=isil.kanru.info)
	by isil.kanru.info with esmtp (Exim 4.77)
	(envelope-from <kanru@HIDDEN>) id 1RW6el-0007UX-8F
	for bug-gnu-emacs@HIDDEN; Thu, 01 Dec 2011 21:26:31 +0800
From: Kan-Ru Chen <kanru@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.91; enforcing double-width CJK character display
Date: Thu, 01 Dec 2011 21:26:31 +0800
Message-ID: <87ipm04e48.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

Discussion was started by Werner LEMBERG in this thread:

https://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00938.html

Currently Emacs chooses fonts that has width close to the width of
the default font. But the font may have smaller advance width so a
double width character will not be rendered as wide as twice of a latin
character.

I set `face-font-rescale-alist' for every font that might be used as a
workaround:

  (setq face-font-rescale-alist
        '(("WenQuanYi Micro Hei" . 1.2)
          ("cwTexYen" . 1.35)
          ("AR Heiti Light B5" . 1.2)))

Ideally this should be calculated and applied automatically (I believe
the information has been exported to lisp but haven't find a good way to
manipulate the font-object) or the display engine should add padding to
double-width font so they are rendered nicely.

-- 
Kanru




Acknowledgement sent to Kan-Ru Chen <kanru@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10179; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.