From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?6buE5bu65b+g?= Newsgroups: gmane.emacs.devel Subject: Re: A patch for enforcing double-width CJK character display Date: Tue, 17 Apr 2012 16:51:49 +0800 Message-ID: <4F8D2F25.1070602@i-soft.com.cn> References: <87ipgzjdir.fsf@catnip.gol.com> <4F8CDCE1.8030109@i-soft.com.cn> <87wr5fdmpa.fsf@catnip.gol.com> <20120417.065618.393680168.wl@gnu.org> <87r4vmewh8.fsf@catnip.gol.com> <4F8D0950.7010406@i-soft.com.cn> <87ipgyet7o.fsf@catnip.gol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1334652733 28419 80.91.229.3 (17 Apr 2012 08:52:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 08:52:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 10:52:12 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 1SK48x-0000V6-Nr for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 10:52:11 +0200 Original-Received: from localhost ([::1]:34341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK48x-0001bH-53 for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 04:52:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK48r-0001Mt-Dh for emacs-devel@gnu.org; Tue, 17 Apr 2012 04:52:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SK48m-0008M2-DP for emacs-devel@gnu.org; Tue, 17 Apr 2012 04:52:05 -0400 Original-Received: from mta319.sina.net ([202.108.3.135]:58212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK48m-0008LN-0C; Tue, 17 Apr 2012 04:52:00 -0400 X-Originating-IP: [218.240.45.242] Original-Received: from unknown (HELO mta319.sina.net) ([10.54.5.138]) by irxd5-209.sina.net with ESMTP; 17 Apr 2012 16:51:53 +0800 Original-Received: by smtp-5-138.sina.net (SINAMAIL, from userid 1058) id 47933B25E8; Tue, 17 Apr 2012 16:51:54 +0800 (CST) Original-Received: from piggy.pure64.org (unknown [218.240.45.242]) by smtp-5-138.sina.net (SINAMAIL) with ESMTPA id 353B9B25E6; Tue, 17 Apr 2012 16:51:54 +0800 (CST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120327 Thunderbird/10.0.2 In-Reply-To: <87ipgyet7o.fsf@catnip.gol.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.108.3.135 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:149726 Archived-At: 于 2012年04月17日 15:02, Miles Bader 写道: > 黄建忠 writes: >> Maybe your system have a buggy "Lucida Sans TypeWriter" font, you can >> try the lucida font released with JDK. >> Hope the problem can be fixed. > No, I think my copy of L-S-T is fine here (you can see from the images > I sent in my previous message). > > Now that I've seen both, it looks like the issue is that the version > of "Sazanami minchou" in Debian includes hand-tuned bitmaps. These > look much better in many cases, but because there's a limited number > of them, and the font-rendering system prefers bitmaps, it chooses a > slightly smaller size so it can use a bitmap. Yes, I disabled embed-bitmap support in fontconfig, and only tested the OUTLINE glyphs of "Sazanami mincho". I also found problems with some old PCF/BDF Chinese fonts, for example, "Song" and "FangSong" shiped with Xorg. If I use such a font, the auto-matched Chinese pixelsize is even bigger than 2 * monospace width.:-( By the way, some korean PCF fonts also had this problem. At first, I disable pcf/bdf support in this patch, If it is a pcf/bdf font, just keep it unchanged. but this is really not a good idea. for example, "SimSun.ttc"(the default font of Windowz XP CN version) is a very famous font for Chinese, almost everyone use it, it provides 9/10/11pt embedded bitmap "song". A lot of users even can not accept "ClearType" and "YaHei" in Vizta and Win 7. :-D > > The result is as you can see, that the size of CJK characters is > smaller than you might expect from the size specified. > > Maybe this is such a rare case that it can be ignored, I dunno, but it > does appear that everything is functioning properly... Yes, I agree, We should try best to keep everything work well. I consider to ignore PCF/BDF font again in this patch. > > -miles > -- Huang JianZhong