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: Sun, 11 May 2014 10:19:58 -0700 (PDT) Message-ID: References: <> <<83eh01udux.fsf@gnu.org>> <> <<83a9aouwtj.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 1399828905 26670 80.91.229.3 (11 May 2014 17:21:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 17:21:45 +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 19:21:29 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 1WjXRD-0001Ht-MX for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 19:21:23 +0200 Original-Received: from localhost ([::1]:33764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXRD-0005Xx-4w for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 13:21:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXR1-0005Xa-IG for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:21:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjXQs-0007fz-Kf for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:21:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXQs-0007fu-Hg for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WjXQr-0008W1-S4 for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:21:01 -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 17:21: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.139982880932659 (code B ref 17457); Sun, 11 May 2014 17:21:01 +0000 Original-Received: (at 17457) by debbugs.gnu.org; 11 May 2014 17:20:09 +0000 Original-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 Original-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 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 s4BHJwdp019645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 May 2014 17:19:59 GMT Original-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 Original-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 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)] 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:88905 Archived-At: > 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.