From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; wrong glyph widths of some Unicode codepoints Date: Fri, 23 May 2008 16:55:53 +0900 Message-ID: References: <8763t6r1tp.fsf@physik.rwth-aachen.de> <87zlqhv71h.fsf@physik.rwth-aachen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1211529445 16021 80.91.229.12 (23 May 2008 07:57:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 07:57:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Torsten Bronger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 09:58:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JzSA3-0003cv-Ss for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 09:58:00 +0200 Original-Received: from localhost ([127.0.0.1]:45977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzS9J-0006El-DP for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 03:57:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzS8L-0005vN-LG for emacs-devel@gnu.org; Fri, 23 May 2008 03:56:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzS8K-0005us-H0 for emacs-devel@gnu.org; Fri, 23 May 2008 03:56:13 -0400 Original-Received: from [199.232.76.173] (port=42486 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzS8K-0005ul-7T for emacs-devel@gnu.org; Fri, 23 May 2008 03:56:12 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:28901) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JzS8J-0005NG-Py for emacs-devel@gnu.org; Fri, 23 May 2008 03:56:12 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzS8H-000277-SB for emacs-devel@gnu.org; Fri, 23 May 2008 03:56:10 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m4N7u4e3015712; Fri, 23 May 2008 16:56:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m4N7u40x027280; Fri, 23 May 2008 16:56:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m4N7trYQ007308; Fri, 23 May 2008 16:55:53 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1JzS81-0002G6-Rv; Fri, 23 May 2008 16:55:53 +0900 In-reply-to: <87zlqhv71h.fsf@physik.rwth-aachen.de> (message from Torsten Bronger on Fri, 23 May 2008 09:00:42 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by mx20.gnu.org: Solaris 9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97564 Archived-At: In article <87zlqhv71h.fsf@physik.rwth-aachen.de>, Torsten Bronger writes: > Unfortunately, another issue with the current CVS version was a > blocker for my particular case, so I switched back to an older > version a couple of minutes ago. Hmpf. My current Emacs version > (which displays the sub- and superscripts with correct widths) says > dejavu sans mono:pixelsize=17:foundry=unknown:weight=regular:slant=normal:width=normal (#x6A6) > > By the way, are you sure that your monospace-13 font has glyphs > > for all of them. In my environtment, monospace font is actually > > mapped to "bitstream vera sans mono" and that font doesn't have > > glyphs for those characters. > It's the same here. However, the sub/superscripts used to work > until recently, see above. Ah! "dejavu sans mono" and "bitstream vera sans mono" happen to have the same metrics. > > In such a situation, it's difficult to expect to see them with the > > same metrics as others. > If the adjustment of glyphs from different fonts is not feasible, I > must and can live with it. But it's certainly a useful thing to > have in my opinion. I agree. It's possible to implement a code to prefer a font of the same metrics (e.g. ascent, descent, avgwidth) as the default one in font-selection. But, for that, Emacs consumes more memory and time for font finding. And even with that, people may prefer a different font. I need more time to consider this problem. BTW, if you know that you want "dejavu sans mono" for them, how about using it as the fallback font as this: (set-fontset-font "fontset-default" nil '("dejavu sans mono" . "iso10646-1") nil 'prepend) It worked in my environment. --- Kenichi Handa handa@ni.aist.go.jp