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: Font Problem with 23.0.92.1 - wrong font used Date: Tue, 14 Apr 2009 12:49:48 +0900 Message-ID: References: <20090407022803.GB5160@metasyntax.net> <20090407084801.GC5160@metasyntax.net> <20090408050247.GD5160@metasyntax.net> <20090410213806.GH5160@metasyntax.net> <20090413173850.GA30710@metasyntax.net> <20090414031419.GF6280@metasyntax.net> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1239681022 5541 80.91.229.12 (14 Apr 2009 03:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Apr 2009 03:50:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Taylor Venable Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 14 05:51:41 2009 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 1LtZgR-00035X-P2 for ged-emacs-devel@m.gmane.org; Tue, 14 Apr 2009 05:51:40 +0200 Original-Received: from localhost ([127.0.0.1]:60139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtZf3-0003y8-6z for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2009 23:50:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtZef-0003nb-TA for emacs-devel@gnu.org; Mon, 13 Apr 2009 23:49:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtZea-0003lc-Va for emacs-devel@gnu.org; Mon, 13 Apr 2009 23:49:49 -0400 Original-Received: from [199.232.76.173] (port=53413 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtZea-0003lW-Ki for emacs-devel@gnu.org; Mon, 13 Apr 2009 23:49:44 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:53130) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LtZeZ-0003p8-SD for emacs-devel@gnu.org; Mon, 13 Apr 2009 23:49:44 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n3E3neLO006664; Tue, 14 Apr 2009 12:49:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n3E3ndAZ018635; Tue, 14 Apr 2009 12:49:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id n3E3ndL2019179; Tue, 14 Apr 2009 12:49:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LtZee-00058u-UK; Tue, 14 Apr 2009 12:49:48 +0900 In-reply-to: <20090414031419.GF6280@metasyntax.net> (message from Taylor Venable on Mon, 13 Apr 2009 23:14:19 -0400) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:110259 Archived-At: In article <20090414031419.GF6280@metasyntax.net>, Taylor Venable writes: > > Ummm, weird. Please define this function: > > > > (defun font-file-at () > > (interactive) > > (message "%s" (aref (query-font (font-at (point))) 1))) > > > > and run it while putting cursor on "abc..." of `default', > > `mode-line-inactive', and `tooltip' lines in *Faces* buffer > > that is shown by M-x list-faces-display RET. > First, when the Japanese font is present: > default: /usr/X11R6/lib/X11/fonts/misc/7x13-ISO8859-1.pcf.gz > mode-line-inactive: [the same] > tooltip: [the same] > Strangely enough, the font shown as the example for 'default' is not > the font used in the buffer display; again it appears to be the semi- > condensed variant, whereas the font used in the buffer display appears > to be the correct normal variant. What is reported when you run font-file-at on a character displayed by that normal variant? And, the XLFD of 7x13-ISO8859-1.pcf.gz is: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 Please run this and check if it is the font you mean by semicondensed variant? % xfd -fn -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 Also please check if the font shown by this is what you mean by normal variant: % xfd -fn -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1 > If I do M-x customize-face default I notice that the value > has been set outside customize, and telling it to set for > the current session redisplays the buffer using the semi- > condensed face. > When I run this function on 'bold' I get nil. Finding a face that > looks like what I want and see in the buffer display, the function > reports the value as /usr/X11R6/lib/X11/fonts/misc/7x13.pcf.gz - but > the font for the 'bold-italic' face which also looks correct (there is > no italic slant variant for the -misc-fixed font I'm using) is > /usr/X11R6/lib/X11/fonts/misc/8x13B-ISO8859-1.pcf.gz > ======================================== > Without the Japanese font in the font path, I get these: > default: /usr/X11R6/lib/X11/fonts/misc/7x13.pcf.gz > bold: /usr/X11R6/lib/X11/fonts/misc/8x13B-ISO8859-1.pcf.gz I still can't reproduce that phenomenon; i.e. the existence of Japanese fonts affects the font selection. By the way, I now have a bad feeling that there's no way for fontconfig to distinguish these fonts: /usr/share/fonts/X11/misc/7x13.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1 /usr/share/fonts/X11/misc/8x13.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1 They differ only in AVERAGE_WIDTH, but fontconfig doesn't report that value. --- Kenichi Handa handa@m17n.org