From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 20:41:59 +0300 Message-ID: <834n0wus9k.fsf@gnu.org> References: <83eh01udux.fsf@gnu.org> <83a9aouwtj.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1399830204 10670 80.91.229.3 (11 May 2014 17:43:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 17:43:24 +0000 (UTC) Cc: 17457@debbugs.gnu.org To: Drew Adams , Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 11 19:43:17 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 1WjXmN-0007eh-Pk for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 19:43:16 +0200 Original-Received: from localhost ([::1]:33818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXmN-0002vv-EO for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 13:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXmF-0002vl-EB for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:43:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjXmA-0005Lc-BJ for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:43:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXmA-0005LY-7n for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WjXm9-0001p1-Qn for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 May 2014 17:43: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.13998301416946 (code B ref 17457); Sun, 11 May 2014 17:43:01 +0000 Original-Received: (at 17457) by debbugs.gnu.org; 11 May 2014 17:42:21 +0000 Original-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 Original-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 Original-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) Original-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) In-reply-to: X-012-Sender: halo1@inter.net.il 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:88908 Archived-At: > 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.