From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.devel Subject: Re: A patch for enforcing double-width CJK character display Date: Tue, 17 Apr 2012 08:45:23 +0200 (CEST) Message-ID: <20120417.084523.265506194.wl@gnu.org> References: <87wr5fdmpa.fsf@catnip.gol.com> <20120417.065618.393680168.wl@gnu.org> <87r4vmewh8.fsf@catnip.gol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334645155 5652 80.91.229.3 (17 Apr 2012 06:45:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 06:45:55 +0000 (UTC) Cc: jianzhong.huang@i-soft.com.cn, emacs-devel@gnu.org To: miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 08:45:54 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 1SK2Ag-0003SG-Hq for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 08:45:50 +0200 Original-Received: from localhost ([::1]:37546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK2Af-0000TL-Tk for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 02:45:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK2AV-0000NL-B5 for emacs-devel@gnu.org; Tue, 17 Apr 2012 02:45:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SK2AP-0003B3-3T for emacs-devel@gnu.org; Tue, 17 Apr 2012 02:45:38 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:36197) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SK2AO-00039d-PF for emacs-devel@gnu.org; Tue, 17 Apr 2012 02:45:33 -0400 Original-Received: (qmail invoked by alias); 17 Apr 2012 06:45:30 -0000 Original-Received: from p5DE8565C.dip.t-dialin.net (EHLO localhost) [93.232.86.92] by mail.gmx.net (mp069) with SMTP; 17 Apr 2012 08:45:30 +0200 X-Authenticated: #54312696 X-Provags-ID: V01U2FsdGVkX18EZ0pSceYEDy/gm4LkOlXPRntJKf6h1uwc4urxrS 7fgEc9kq4il7eS In-Reply-To: <87r4vmewh8.fsf@catnip.gol.com> X-Mailer: Mew version 6.4rc1 on Emacs 24.0.92.1 / Mule 6.0 (HANACHIRUSATO) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 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:149721 Archived-At: >> Mhmm. The silent assumption of making a CJK and ASCII font fit is >> that double-width characters are really double width in relation to >> single-width characters. In your example, the width of two ASCII >> characters is 18px, while one CJK character is 12px. Such two >> fonts simply don't fit, and no clever algorithm will be able to >> make them ever fit without scaling. > > Er, wait, what? > > It can be done trivially, by adding 3 pixels of whitespace on both > sides of every CJK character... > > [Which is the source of my concern: that in some cases it might be > so much whitespace that the result looks funny.] Sorry for being imprecise: I don't mean the possibility of making them technically fit, which gives funny results, as you correctly state. I rather mean an aesthetic fit. Werner