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 10:06:50 +0200 (CEST) Message-ID: <20120417.100650.160425138.wl@gnu.org> References: <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=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334650038 7849 80.91.229.3 (17 Apr 2012 08:07:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 08:07:18 +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 10:07:17 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 1SK3RU-0001ZB-Tn for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 10:07:17 +0200 Original-Received: from localhost ([::1]:34371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK3RR-0001M0-0J for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 04:07:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK3RN-0001Lv-Tz for emacs-devel@gnu.org; Tue, 17 Apr 2012 04:07:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SK3RF-0002gp-FK for emacs-devel@gnu.org; Tue, 17 Apr 2012 04:07:09 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:50381) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SK3RF-0002gT-4l for emacs-devel@gnu.org; Tue, 17 Apr 2012 04:07:01 -0400 Original-Received: (qmail invoked by alias); 17 Apr 2012 08:06:59 -0000 Original-Received: from p5DE8565C.dip.t-dialin.net (EHLO localhost) [93.232.86.92] by mail.gmx.net (mp024) with SMTP; 17 Apr 2012 10:06:59 +0200 X-Authenticated: #54312696 X-Provags-ID: V01U2FsdGVkX19NwEcVHsNN8LCcjDHCrfrhx5CWQ2gM4oXcQ5nfaj jYaggDiJD+mbOZ In-Reply-To: <87ipgyet7o.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.22 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:149724 Archived-At: > [...] 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. This is not correct: Bitmap strikes are selected by PPEM only, no other size is used. What you are actually observing is a font bug: The bitmap strikes in sazanami-mincho are buggy, specifying incorrect advance widths for many PPEM values. Try the ftview demo program, go to the kana and kanji ranges, then toggle bitmap strike display with key `b'. You will see `jumping glyphs' for most PPEM values. Now repeat the same with msmincho.ttc, and you won't see this effect. It's probably worth to send a bug report to the people who are maintaining sazanami-mincho to fix this. All in all, the font is of really bad quality (I'm not talking of the glyph shapes itself); the `name' table contains bizarre entries, the version field hasn't been increased inspite of changes (as preserved in the `FFTM' table, the `FontForge timestamp' which is not visible for other tools), the glyphs are unnecessarily big because the outlines aren't properly simplified, etc., etc. Note that I've looked at the version which has been modified last at 10-Dec-2011. Werner