From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: A patch for enforcing double-width CJK character display Date: Sun, 15 Apr 2012 14:10:10 +0900 Message-ID: <87d379h971.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> <4F8782C8.2030005@i-soft.com.cn> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334466630 20309 80.91.229.3 (15 Apr 2012 05:10:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Apr 2012 05:10:30 +0000 (UTC) Cc: =?utf-8?B?6buE5bu65b+g?= , Eli Zaretskii , kanru@kanru.info, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 15 07:10:28 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 1SJHjH-0004w5-PB for ged-emacs-devel@m.gmane.org; Sun, 15 Apr 2012 07:10:27 +0200 Original-Received: from localhost ([::1]:44613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJHjG-0003PG-TQ for ged-emacs-devel@m.gmane.org; Sun, 15 Apr 2012 01:10:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJHjE-0003Ox-B5 for emacs-devel@gnu.org; Sun, 15 Apr 2012 01:10:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJHjC-0003PD-Lb for emacs-devel@gnu.org; Sun, 15 Apr 2012 01:10:23 -0400 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:49155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJHjA-0003Ox-EH; Sun, 15 Apr 2012 01:10:20 -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 ) id 1SJHj4-0002jv-Pm; Sun, 15 Apr 2012 14:10:14 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id BF16BDFC1; Sun, 15 Apr 2012 14:10:12 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (Stefan Monnier's message of "Fri, 13 Apr 2012 09:27:33 -0400") Original-Lines: 31 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." 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:149670 Archived-At: 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.... Part of the problem, of course, is that it's somewhat difficult / clunky for the user to customize which fonts get used for different character sets. There's `set-fontset-font', but I've found it to be sort of hard to control, as there doesn't seem to be any way of controlling its interaction with faces... [Is there a better way?] Thanks, -miles -- "Don't just question authority, Don't forget to question me." -- Jello Biafra