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: Wed, 18 Apr 2012 22:58:58 +0900 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334757610 23176 80.91.229.3 (18 Apr 2012 14:00:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2012 14:00:10 +0000 (UTC) Cc: jianzhong.huang@i-soft.com.cn, william.xwl@gmail.com, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 18 16:00:08 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 1SKVQP-0006aY-T0 for ged-emacs-devel@m.gmane.org; Wed, 18 Apr 2012 16:00:02 +0200 Original-Received: from localhost ([::1]:54362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKVQO-0001tm-HD for ged-emacs-devel@m.gmane.org; Wed, 18 Apr 2012 10:00:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKVQE-0001tS-5l for emacs-devel@gnu.org; Wed, 18 Apr 2012 09:59:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKVQ7-0004ej-KB for emacs-devel@gnu.org; Wed, 18 Apr 2012 09:59:49 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:46253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKVQ7-0004eL-DY for emacs-devel@gnu.org; Wed, 18 Apr 2012 09:59:43 -0400 Original-Received: by vcbfk14 with SMTP id fk14so6116832vcb.0 for ; Wed, 18 Apr 2012 06:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Pv7uHxWnBOp8vksN3UonhatCDrIu1v8otnh+AxgQf5I=; b=OvYBnaBHdmLS0nMbiGKeC6OZ1fSzoXs24IKl1+3mAzX5HSHIfA+NN6t2VwB64jivY0 J0GIW7YT4SxIewP8eGHFZIPi430VLJDzT4TCsX0ImmWaQ7GHF9GJFZFDrpttwIFc9at2 ybqrhnu/Vy/GxSJ4TQtas3lsTVdSgdAXbxg63wejN0KxFYg+veQ9+VJ8WO69Jahl1hS9 f54IVCSjpfc0iIqs2OHS9sadLeniRvy4333tz9eCWEsCZNi/ST35S1iBSX/BtLBgDVaM K+sPcJdhuGAJBiaLb9kFtMHIwkaffZVPlc7F39ucZpp9kdBAGtofveJtYTG0ahxjvQio Kdyw== Original-Received: by 10.220.150.12 with SMTP id w12mr1222033vcv.39.1334757580662; Wed, 18 Apr 2012 06:59:40 -0700 (PDT) Original-Received: by 10.220.170.80 with HTTP; Wed, 18 Apr 2012 06:58:58 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: H3D9e4yTnL02SUslGKsY1bNwDeY X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.169 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:149759 Archived-At: 2012=C4=EA4=D4=C218=C8=D515:54 Kenichi Handa : > In article , Miles Bader writes: > >> I set the font to "Droid Sans Mono", and the Japanese font Emacs >> automatically chose was "=A4=AD=A4=ED=D7=D6". I don't know _why_ Emacs = chose that >> font, > > That's because I couldn't use FcFontSetSort because it had a > serious bug when I wrote the relevant code long ago. Could > you please try this patch? I tried the patch, and the result seem much better: On my home machine, Emacs now defaults to a Japanese font which is the same as gedit, and looks quite good (whereas without the patch, Emacs picks a font which is still decent looking, but doesn't match the ASCII font very well). [On my work machine, it's a little less clear what's going on: with the patch, Emacs picks a nicer looking Japanese font, but it doesn't seem to be the same font gedit picks...] One thing I noticed, BTW: gedit, when using a fixed-pitch default font, _doesn't_ force CJK characters to be 2*the width of ASCII characters (in fact, with your ftfont patch, the display of the current Emacs seems to match the display of gedit pretty much exactly...). So I'd say this patch seems an improvement over the current behavior... -miles --=20 Cat is power. Cat is peace.