From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" Date: Sat, 10 May 2014 22:23:41 -0700 (PDT) Message-ID: References: <> <<83eh01udux.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1399785873 11647 80.91.229.3 (11 May 2014 05:24:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 05:24:33 +0000 (UTC) Cc: 17457@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 11 07:24:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WjMFM-0006fi-Kt for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 07:24:24 +0200 Original-Received: from localhost ([::1]:59870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjMFL-0005FF-M9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 01:24:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjMF9-0005Eo-9E for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 01:24:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjMF0-0002s4-Hp for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 01:24:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjMF0-0002rz-EF for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 01:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WjMEz-00034O-Ur for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 01:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 May 2014 05:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17457-submit@debbugs.gnu.org id=B17457.139978583111780 (code B ref 17457); Sun, 11 May 2014 05:24:01 +0000 Original-Received: (at 17457) by debbugs.gnu.org; 11 May 2014 05:23:51 +0000 Original-Received: from localhost ([127.0.0.1]:58631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjMEo-00033t-TV for submit@debbugs.gnu.org; Sun, 11 May 2014 01:23:51 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:48849) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjMEm-00033f-1G for 17457@debbugs.gnu.org; Sun, 11 May 2014 01:23:48 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4B5NfbS019224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 May 2014 05:23:42 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s4B5Nd5t010436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 May 2014 05:23:41 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4B5NdpE020689; Sun, 11 May 2014 05:23:39 GMT In-Reply-To: <<83eh01udux.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88885 Archived-At: > > Subject line says it all. No problem in Emacs 24 or prior releases: > > > > M-: (font-info "-outline-Lucida Console-normal-normal-normal-mono") > > ["-outline-Arial-normal-normal-normal-sans-20-*-*-*-p-*-iso8859-1" > > "Arial-12.0" 20 23 0 0 19] >=20 > What do you get in prior releases, and why do you think that output is > correct? In prior releases (Emacs 23 through 24.3) I get what I showed above for prior releases. Why should I think it is not correct? Why should Emacs suddenly start treating it as invalid? OK, yes, it seems weird that the font info returned seems to be for a different font in this case! I'll grant you that perhaps there is an Emacs bug there to be fixed. But at least in previous versions Emacs did not claim the font was invalid. I don't see why it would be invalid (either the Lucida font or the Arial font that Emacs apparently used to think it was looking at). Lucida Console is in fact the font currently in use in the frame where I ask for the value (when I test with my setup, which uses that font by default). This is what the frame parameter `font' value is: "-outline-Lucida Console-normal-normal-normal-mono-14-*-*-*-c-*-iso8859-1" Where did I get the value of the arg I pass to `font-info'? >From here: (append fontset-lst (x-list-fonts "*")), where FONTSET-LST is this; (let ((fontset-lst (fontset-list))) (setq fontset-lst (delete "-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default" fontset-lst)) ...) I map `font-info' over the above list composed of `fontset-list' fonts and `x-list-fonts' fonts. I have been doing so for a long time. I really hadn't noticed until now that for the Lucida font `font-info' apparently returned information for a different font (Arial). But in general it has worked well. The info I use from `font-info' is just this: (format "pixelsize: %s, pixelheight: %s, offset: %s, compose: %s, ascent: %s" (aref font-info iii) (aref font-info (+ iii 1)) (aref font-info (+ iii 2)) (aref font-info (+ iii 3)) (aref font-info (+ iii 4))) And that seemed to be OK generally, but I admit that I didn't check that it is always using the right font. What I can say is that the values for those parts(in previous versions) are different=20 for different fonts. And for a font that is not yet loaded I do get a nil value returned from `font-info'. Now, with the builds since 2013-06-18, I get an invalid-font error instead. > This is in "emacs -Q", btw, right? Yes. And no - it makes no difference: Both with my setup and=20 with emacs -Q I get the same behavior, both for previous versions (where Emacs raises no error and returns the vector above) and for the reported regression builds. `font-info' is supposed to return either font info or nil if the font is not yet loaded. In my case the Lucida font is loaded (even for emacs -Q).