From debbugs-submit-bounces@debbugs.gnu.org Sat May 10 21:58:34 2014 Received: (at submit) by debbugs.gnu.org; 11 May 2014 01:58:34 +0000 Received: from localhost ([127.0.0.1]:58502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjJ28-00041U-Jw for submit@debbugs.gnu.org; Sat, 10 May 2014 21:58:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36159) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjJ25-000419-Q2 for submit@debbugs.gnu.org; Sat, 10 May 2014 21:58:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjJ1q-0005b0-3s for submit@debbugs.gnu.org; Sat, 10 May 2014 21:58:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:57171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjJ1q-0005aw-0Z for submit@debbugs.gnu.org; Sat, 10 May 2014 21:58:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjJ1h-0001Qx-89 for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 21:58:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjJ1V-0005aI-7q for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 21:58:05 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:44594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjJ1V-0005a8-0V for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 21:57:53 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4B1vnH6011558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 11 May 2014 01:57:50 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4B1vmO9029880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 11 May 2014 01:57:49 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4B1vmto008190 for ; Sun, 11 May 2014 01:57:48 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 10 May 2014 18:57:50 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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] In this build, however, I get this: Debugger entered--Lisp error: (error "Invalid font name: -outline-Lucida Co= nsole-normal-normal-normal-mono") font-info("-outline-Lucida Console-normal-normal-normal-mono") In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-04-29 on ODIEONE Bzr revision: 117031 monnier@iro.umontreal.ca-20140429151607-qnkgbymwfaj5ut= 08 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include'' From debbugs-submit-bounces@debbugs.gnu.org Sat May 10 22:07:15 2014 Received: (at 17457) by debbugs.gnu.org; 11 May 2014 02:07:15 +0000 Received: from localhost ([127.0.0.1]:58513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjJAZ-0004JJ-BQ for submit@debbugs.gnu.org; Sat, 10 May 2014 22:07:15 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:50393) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjJAW-0004J1-GK for 17457@debbugs.gnu.org; Sat, 10 May 2014 22:07:13 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4B275cJ017159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <17457@debbugs.gnu.org>; Sun, 11 May 2014 02:07:06 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4B274LU019789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <17457@debbugs.gnu.org>; Sun, 11 May 2014 02:07:05 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s4B273vM017122 for <17457@debbugs.gnu.org>; Sun, 11 May 2014 02:07:03 GMT MIME-Version: 1.0 Message-ID: <13235cc7-6ecb-4e28-b514-d73423e6c1c3@default> Date: Sat, 10 May 2014 19:07:05 -0700 (PDT) From: Drew Adams To: 17457@debbugs.gnu.org Subject: RE: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" References: In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17457 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) Works with all builds through 2013-06-17, this build: In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-06-17 on ODIEONE Bzr revision: 113024 eliz@gnu.org-20130617163040-8hmzci370q4argze Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs CFLAGS=3D-O0 -g3 LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include' Regression introduced before this (broken) build: In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-06-18 on LEG570 Bzr revision: 113050 handa@gnu.org-20130618145521-fvpc5viqtc85j4j4 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/usr --enable-checking CFLAGS=3D'-O0 -g3' CPPFLAGS=3D'-DGLYPH_DEBUG=3D1 -I/c/usr/include'' From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 00:41:18 2014 Received: (at 17457) by debbugs.gnu.org; 11 May 2014 04:41:18 +0000 Received: from localhost ([127.0.0.1]:58594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjLZd-0001iT-Vs for submit@debbugs.gnu.org; Sun, 11 May 2014 00:41:18 -0400 Received: from mtaout29.012.net.il ([80.179.55.185]:56265) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjLZb-0001i9-0F for 17457@debbugs.gnu.org; Sun, 11 May 2014 00:41:16 -0400 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N5E001007HFH700@mtaout29.012.net.il> for 17457@debbugs.gnu.org; Sun, 11 May 2014 07:42:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5E00MLU7Q8WI40@mtaout29.012.net.il>; Sun, 11 May 2014 07:42:08 +0300 (IDT) Date: Sun, 11 May 2014 07:40:54 +0300 From: Eli Zaretskii Subject: Re: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" In-reply-to: X-012-Sender: halo1@inter.net.il To: Drew Adams Message-id: <83eh01udux.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17457 Cc: 17457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sat, 10 May 2014 18:57:50 -0700 (PDT) > From: Drew Adams > > 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] What do you get in prior releases, and why do you think that output is correct? This is in "emacs -Q", btw, right? From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 01:23:51 2014 Received: (at 17457) by debbugs.gnu.org; 11 May 2014 05:23:51 +0000 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 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 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 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 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 MIME-Version: 1.0 Message-ID: Date: Sat, 10 May 2014 22:23:41 -0700 (PDT) From: Drew Adams To: Eli Zaretskii Subject: RE: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" References: <> <<83eh01udux.fsf@gnu.org>> 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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17457 Cc: 17457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) > > 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). From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 12:03:58 2014 Received: (at 17457) by debbugs.gnu.org; 11 May 2014 16:03:59 +0000 Received: from localhost ([127.0.0.1]:59432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjWEI-0006Rd-4K for submit@debbugs.gnu.org; Sun, 11 May 2014 12:03:58 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:42451) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjWEF-0006RK-82 for 17457@debbugs.gnu.org; Sun, 11 May 2014 12:03:56 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N5F001002Q6NN00@mtaout24.012.net.il> for 17457@debbugs.gnu.org; Sun, 11 May 2014 19:01:08 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5F00JTV35V4I90@mtaout24.012.net.il>; Sun, 11 May 2014 19:01:08 +0300 (IDT) Date: Sun, 11 May 2014 19:03:36 +0300 From: Eli Zaretskii Subject: Re: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" In-reply-to: X-012-Sender: halo1@inter.net.il To: Drew Adams Message-id: <83a9aouwtj.fsf@gnu.org> References: <83eh01udux.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17457 Cc: 17457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sat, 10 May 2014 22:23:41 -0700 (PDT) > From: Drew Adams > Cc: 17457@debbugs.gnu.org > > > > 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] > > > > 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? Because it indeed _is_ invalid, see below. > 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. Yes, there was a bug, and it has been fixed in the current code. That's why you started to get that error. > 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). There's nothing wrong with the fonts, it's just that you are using an invalid specification of a font. > 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)) > ...) But the above doesn't yield "-outline-Lucida Console-normal-normal-normal-mono", it yields this: "-outline-Lucida Console-normal-normal-normal-mono-*-*-*-*-c-*-iso10646-1" And if I use this longer string, there's no problem: M-: (font-info "-outline-Lucida Console-normal-normal-normal-mono-*-*-*-*-c-*-iso10646-1") RET => ["-outline-Lucida Console-normal-normal-normal-mono-16-*-*-*-c-*-iso10646-1" "Lucida Console-12.0" 16 16 0 0 13] Likewise with this more loose spec: "-outline-Lucida Console-normal-normal-normal-mono-*-*-*-*-*-*-*" > 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. There must be some other factor at work here, because I don't understand how you get your truncated spec. Font specifications that start with a dash "-" are XLFD specs, and they must be built according to certain rules to be valid. (See the node "Fonts" in the User manual for some details.) Your string starts with a dash, which means it's an XLFD spec, but it has too few components (the parts between dashes) for an XLFD spec, so Emacs rejects it as invalid. Previously, it didn't detect the problem, and would return information about some semi-random font, whose particulars depend on which fonts are installed on your system. E.g., on one of my systems I get Arial, like you, but on another I get this: ["-outline-STIX-normal-normal-normal-mono-16-*-*-*-p-*-iso8859-1" "STIX-12.0" 16 24 0 0 16] > 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))) This info will be incorrect if you get it for the wrong font. The pixelsize and pixelheight parameters are different, for starters. > `font-info' is supposed to return either font info or nil if the > font is not yet loaded. I don't see a problem with a function that signals an error when passed invalid input, even though that fact is not stated in the documentation: we rarely state that in other cases. For example: M-: (string-width 1) RET => error From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 13:20:09 2014 Received: (at 17457) by debbugs.gnu.org; 11 May 2014 17:20:09 +0000 Received: from localhost ([127.0.0.1]:59478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXPz-0008Uf-FM for submit@debbugs.gnu.org; Sun, 11 May 2014 13:20:08 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:43418) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXPx-0008U2-8P for 17457@debbugs.gnu.org; Sun, 11 May 2014 13:20:06 -0400 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 s4BHJwdp019645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 May 2014 17:19:59 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s4BHJvYO000927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 May 2014 17:19:58 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4BHJvN5026226; Sun, 11 May 2014 17:19:57 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 11 May 2014 10:19:58 -0700 (PDT) From: Drew Adams To: Eli Zaretskii Subject: RE: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" References: <> <<83eh01udux.fsf@gnu.org>> <> <<83a9aouwtj.fsf@gnu.org>> In-Reply-To: <<83a9aouwtj.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17457 Cc: 17457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) > There must be some other factor at work here, because I don't > understand how you get your truncated spec. Yes, sorry. This is what I was doing, with var FONT as input: (save-match-data (let ((xlfd-regexp "\\`\\(-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*\\)\ -[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*\\'")) (or (not (string-match xlfd-regexp font)) (setq font (replace-match "\\1" nil nil font))))) I truncated it because I am not interested in anything except the first 6 fields of the XLFD string. And previously, or so I thought, `font-info' worked OK with such a truncated font spec. (And - see below - I thought that allowed me to get font info for some fonts that otherwise did not give info. I did not realize that `font-info' was in fact giving me incorrect info for those fonts.) I then filtered out the case of a literal (string=3D font "-*-*-*-*-*-*"), then passed the FONT to `font-info'. I have fixed my code now so that the main feature works. But `font-info' still complains about some of the fonts I have. I've wrapped the `font-info' call in an `ignore-errors' to ignore that, but this means that I cannot get font info for those few fonts. So be it. FYI, here are some problematic fonts. It is no doubt the addition of extra fields that makes them invalid. -outline-MingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-big5-0 -outline-MingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso10646-1 -outline-MingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-1 -outline-MingLiU_HKSCS-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-big5-0 -outline-MingLiU_HKSCS-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso10646= -1 -outline-MingLiU_HKSCS-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-= 1 -outline-PMingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-big5-0 -outline-PMingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso10646-1 -outline-PMingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-1 -outline-SimSun-ExtB-normal-normal-normal-mono-*-*-*-*-c-*-gb2312.1980-0 -outline-SimSun-ExtB-normal-normal-normal-mono-*-*-*-*-c-*-iso10646-1 -outline-SimSun-ExtB-normal-normal-normal-mono-*-*-*-*-c-*-iso8859-1 All of those fonts seem to work OK outside of Emacs. But yes, Emacs now rejects them - this raises the same invalid font error: M-x set-frame-font -outline-MingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-big5-0 Is Emacs doing the right thing here and other applications (e.g. Outlook) are wrong? If you see no bug wrt this, OK. In any case, I will close the current bug. Thanks for taking a look. From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 13:22:22 2014 Received: (at control) by debbugs.gnu.org; 11 May 2014 17:22:22 +0000 Received: from localhost ([127.0.0.1]:59482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXSA-00006h-6H for submit@debbugs.gnu.org; Sun, 11 May 2014 13:22:22 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:43635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXS7-00006R-PM for control@debbugs.gnu.org; Sun, 11 May 2014 13:22:20 -0400 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 s4BHMDiQ020918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 11 May 2014 17:22:14 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s4BHMDvK002879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 11 May 2014 17:22:13 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s4BHMCS1002869 for ; Sun, 11 May 2014 17:22:12 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 11 May 2014 10:22:13 -0700 (PDT) From: Drew Adams To: control@debbugs.gnu.org Subject: close 17457 X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) close 17457 thanks From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 13:42:21 2014 Received: (at 17457) by debbugs.gnu.org; 11 May 2014 17:42:21 +0000 Received: from localhost ([127.0.0.1]:59507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXlU-0001nx-8d for submit@debbugs.gnu.org; Sun, 11 May 2014 13:42:21 -0400 Received: from mtaout29.012.net.il ([80.179.55.185]:41621) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXlR-0001nY-DS for 17457@debbugs.gnu.org; Sun, 11 May 2014 13:42:18 -0400 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N5F003007EI7B00@mtaout29.012.net.il> for 17457@debbugs.gnu.org; Sun, 11 May 2014 20:43:11 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5F00NHV7VYB670@mtaout29.012.net.il>; Sun, 11 May 2014 20:43:10 +0300 (IDT) Date: Sun, 11 May 2014 20:41:59 +0300 From: Eli Zaretskii Subject: Re: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" In-reply-to: X-012-Sender: halo1@inter.net.il To: Drew Adams , Kenichi Handa Message-id: <834n0wus9k.fsf@gnu.org> References: <83eh01udux.fsf@gnu.org> <83a9aouwtj.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17457 Cc: 17457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sun, 11 May 2014 10:19:58 -0700 (PDT) > From: Drew Adams > Cc: 17457@debbugs.gnu.org > > > There must be some other factor at work here, because I don't > > understand how you get your truncated spec. > > Yes, sorry. This is what I was doing, with var FONT as input: > > (save-match-data > (let ((xlfd-regexp "\\`\\(-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*\\)\ > -[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*\\'")) > (or (not (string-match xlfd-regexp font)) > (setq font (replace-match "\\1" nil nil font))))) > > I truncated it because I am not interested in anything except the > first 6 fields of the XLFD string. The right way is to replace the other fields with "*", not chop them off. > I have fixed my code now so that the main feature works. But `font-info' > still complains about some of the fonts I have. I've wrapped the > `font-info' call in an `ignore-errors' to ignore that, but this means that > I cannot get font info for those few fonts. So be it. > > FYI, here are some problematic fonts. It is no doubt the addition of > extra fields that makes them invalid. > > -outline-MingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-big5-0 > -outline-MingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso10646-1 > -outline-MingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-1 > -outline-MingLiU_HKSCS-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-big5-0 > -outline-MingLiU_HKSCS-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso10646-1 > -outline-MingLiU_HKSCS-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-1 > -outline-PMingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-big5-0 > -outline-PMingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso10646-1 > -outline-PMingLiU-ExtB-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-1 > -outline-SimSun-ExtB-normal-normal-normal-mono-*-*-*-*-c-*-gb2312.1980-0 > -outline-SimSun-ExtB-normal-normal-normal-mono-*-*-*-*-c-*-iso10646-1 > -outline-SimSun-ExtB-normal-normal-normal-mono-*-*-*-*-c-*-iso8859-1 Yes, I think the problem is in that "-ExtB", which I think is part of the font name, but Emacs's XLFD parser thinks it is a separate field. Perhaps Handa-san, or someone else who knows more about fonts, could tell how to handle these font names correctly. It looks like a bug to me, FWIW. From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 15:23:44 2014 Received: (at 17457) by debbugs.gnu.org; 11 May 2014 19:23:44 +0000 Received: from localhost ([127.0.0.1]:59639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjZLb-0004lB-7f for submit@debbugs.gnu.org; Sun, 11 May 2014 15:23:43 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:20255) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjZLY-0004km-4E for 17457@debbugs.gnu.org; Sun, 11 May 2014 15:23:40 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4BJNXFI023519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 May 2014 19:23:34 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4BJNUvu028920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 May 2014 19:23:33 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4BJNUWQ026745; Sun, 11 May 2014 19:23:30 GMT MIME-Version: 1.0 Message-ID: <224c2504-400c-439e-ad89-bb81e82a7b7f@default> Date: Sun, 11 May 2014 12:23:32 -0700 (PDT) From: Drew Adams To: Eli Zaretskii , Drew Adams , Kenichi Handa Subject: RE: bug#17457: 24.4.50; REGRESSION: "Invalid font name: -outline-Lucida Console-normal-normal-normal-mono" References: <> <<83eh01udux.fsf@gnu.org>> <> <<83a9aouwtj.fsf@gnu.org>> <> <<834n0wus9k.fsf@gnu.org>> In-Reply-To: <<834n0wus9k.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17457 Cc: 17457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) > > I truncated it because I am not interested in anything except the > > first 6 fields of the XLFD string. >=20 > The right way is to replace the other fields with "*", not chop them > off. I almost added, and will add now, that I think perhaps the reason I did that before passing the font arg to `font-info', was mainly to allow handling of the problematic fonts. I did not realize, however, that they were anyway not being handled correctly that way. They were tolerated, but the returned info was not relevant. > Yes, I think the problem is in that "-ExtB", which I think is part of > the font name, but Emacs's XLFD parser thinks it is a separate field. > Perhaps Handa-san, or someone else who knows more about fonts, could > tell how to handle these font names correctly. It looks like a bug to > me, FWIW. I thought of that, but I don't know how the name should be parsed, to determine that the name field has ended. Perhaps the following field has only a fixed number of possibilities. But then there is (IIRC) the possibility that fields can be missing. IOW, is it perhaps problematic to parse names that contain hyphens? I closed the bug. If appropriate, feel free to open it based on the possibility of a parsing problem. From unknown Mon Aug 18 11:14:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Jun 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator