From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.devel Subject: Re: A patch for enforcing double-width CJK character display Date: Mon, 16 Apr 2012 00:08:41 +0800 Organization: the Church of Emacs Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334506221 30728 80.91.229.3 (15 Apr 2012 16:10:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Apr 2012 16:10:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 15 18:10:21 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 1SJS1s-0001mu-DO for ged-emacs-devel@m.gmane.org; Sun, 15 Apr 2012 18:10:20 +0200 Original-Received: from localhost ([::1]:38480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJS1r-0003gK-N0 for ged-emacs-devel@m.gmane.org; Sun, 15 Apr 2012 12:10:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJS1o-0003e8-2H for emacs-devel@gnu.org; Sun, 15 Apr 2012 12:10:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJS1m-00020R-3a for emacs-devel@gnu.org; Sun, 15 Apr 2012 12:10:15 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJS1l-000208-T8 for emacs-devel@gnu.org; Sun, 15 Apr 2012 12:10:14 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SJS1i-0001eb-67 for emacs-devel@gnu.org; Sun, 15 Apr 2012 18:10:10 +0200 Original-Received: from 123.108.223.115 ([123.108.223.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Apr 2012 18:10:10 +0200 Original-Received: from william.xwl by 123.108.223.115 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Apr 2012 18:10:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 123.108.223.115 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (darwin) Cancel-Lock: sha1:aQHvACvZluPt2vmr088Xd3h9vyw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:149673 Archived-At: Miles Bader writes: > Stefan Monnier writes: >>> Here is a problem the patch fixed, generally The pixel width of >>> auto-matched CJK font is not exactly equals to double monospace font >>> width. mostly, For same font size, the pixel width of CJK font is >>> smaller than double pixel width of monospace font. >> >> Ah, I see, thanks. I probably won't benefit much from it, but it seems >> like a good feature to have. > > BTW, I hope there's a way to disable or tune this... Some CJK fonts seem > to be very small (when rendered at the same size as other characters), > and I think forcing them to be spaced with 2 * the width of the default > font would make CJK characters look weird, with tons of whitespace in > between each character.... Why would it look weird? Like the author said, the terminal has rendered it that way for long. Even on Mac, i find Terminal.app does the same way. And it is especially useful when i want to align a mix of ASCII and CJK characters, which is an issue i know many CJK users had complained. I made a similar fix on Mac, it also works. Very good! -- William http://xwl.appspot.com