GNU bug report logs - #16721
24.3.50; can not use ext font anymore

Previous Next

Package: emacs;

Reported by: Ivan Kanis <ivan <at> kanis.fr>

Date: Tue, 11 Feb 2014 11:06:02 UTC

Severity: important

Found in version 24.3.50

Done: Ivan Kanis <ivan <at> kanis.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16721 in the body.
You can then email your comments to 16721 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Tue, 11 Feb 2014 11:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Kanis <ivan <at> kanis.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 11 Feb 2014 11:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ivan Kanis <ivan <at> kanis.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; can not use ext font anymore
Date: Tue, 11 Feb 2014 12:04:59 +0100
1) emacs -Q
2) eval the following in *scratch*

(set-fontset-font "fontset-default" nil
  "xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1")

I expect a return of nil. I get an error "Invalid font name".

On Debian the package ttf-ancient-fonts contains the font.

In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.20)
 of 2014-02-08 on tao.kanis.fr
Repository revision: 116348 michael.albinus <at> gmx.de-20140208133515-mgy8agwqq4nc6bfb
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description:	Ubuntu 13.10

Configured using:
 `configure --prefix=/home/ivan/emacs-bzr --without-compress-install
 'CFLAGS=-g -DSYSTEM_PURESIZE_EXTRA=1000000''

Important settings:
  value of $LANG: en_US.UTF8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r t - b u g <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort hashcash gnus-util mail-extr emacsbug message format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Tue, 11 Feb 2014 21:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 16721 <at> debbugs.gnu.org
Cc: Ivan Kanis <ivan <at> kanis.fr>, Kenichi Handa <handa <at> gnu.org>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Tue, 11 Feb 2014 16:27:51 -0500
Ivan Kanis wrote:

> 1) emacs -Q
> 2) eval the following in *scratch*
>
> (set-fontset-font "fontset-default" nil
>   "xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1")
>
> I expect a return of nil. I get an error "Invalid font name".

This is due to r113049. Perhaps it is working as it should, I don't know.

committer: K. Handa <handa <at> gnu.org>
timestamp: Tue 2013-06-18 23:51:25 +0900
message:
  font.c (Ffont_spec): Signal an error for an invalid font name.


> 'CFLAGS=-g -DSYSTEM_PURESIZE_EXTRA=1000000''

Unrelated, but I would recommend not doing that, unless you have a good
reason to.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 12:49:02 GMT) Full text and rfc822 format available.

Message #11 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: handa <at> gnu.org (K. Handa)
To: Glenn Morris <rgm <at> gnu.org>
Cc: 16721 <at> debbugs.gnu.org, ivan <at> kanis.fr
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 21:48:41 +0900
In article <6od2ituyp4.fsf <at> fencepost.gnu.org>, Glenn Morris <rgm <at> gnu.org> writes:

> Ivan Kanis wrote:
> > 1) emacs -Q
> > 2) eval the following in *scratch*
> >
> > (set-fontset-font "fontset-default" nil
> >   "xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1")
> >
> > I expect a return of nil. I get an error "Invalid font name".

> This is due to r113049. Perhaps it is working as it should, I don't know.

A valid XLFD name should have 14 fields separated by "-",
not 15 as the above example.  So, I think signaling "Invalid
font name" error is the right thing.

---
Kenichi Handa
handa <at> gnu.org




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 13:49:02 GMT) Full text and rfc822 format available.

Message #14 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: handa <at> gnu.org (K. Handa)
Cc: 16721 <at> debbugs.gnu.org, Glenn Morris <rgm <at> gnu.org>, ivan <at> kanis.fr
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 08:48:05 -0500
> A valid XLFD name should have 14 fields separated by "-",
> not 15 as the above example.  So, I think signaling "Invalid
> font name" error is the right thing.

Agreed.  It would be helpful for the error message to point out why the
font name is invalid, tho.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 15:58:02 GMT) Full text and rfc822 format available.

Message #17 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Kanis <ivan <at> kanis.fr>
To: handa <at> gnu.org (K. Handa)
Cc: 16721 <at> debbugs.gnu.org, Glenn Morris <rgm <at> gnu.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 16:57:09 +0100
>> A valid XLFD name should have 14 fields separated by "-",
>> not 15 as the above example.  So, I think signaling "Invalid
>> font name" error is the right thing.

Hi Handaさん、

The font

"xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1"

Is a copy & paste of what emacs 24.3 report after doing a C-u C-x =

It has 15 fields on that version.

On trunk emacs I have tried:

"xft:-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1"

and

"xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-0-iso10646-1"

which contains 14 fields and still get an error.

I don't know anything about this xft stuff. I just had a look at the
emacs info. It talks about using a program called fclist. The output of
that program doesn't tell me what I need to tell emacs to use these fonts.

Take care,

Ivan

-- 
Don't worry; it's been deprecated. The new one is worse.
    -- BOFH excuse #54

I am listening to "Kruder & Dorfmeister - David Holmes - Gone (K&D Session)".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 16:09:02 GMT) Full text and rfc822 format available.

Message #20 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Ivan Kanis <ivan <at> kanis.fr>
Cc: 16721 <at> debbugs.gnu.org, "K. Handa" <handa <at> gnu.org>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 17:07:50 +0100
On Thu, Feb 13, 2014 at 4:57 PM, Ivan Kanis <ivan <at> kanis.fr> wrote:

> Is a copy & paste of what emacs 24.3 report after doing a C-u C-x =
>
> It has 15 fields on that version.
>
> On trunk emacs I have tried:
>
> "xft:-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1"

The first item, "xft:", is not part of the font, just saying which
font backend is being used. Please remove it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 16:15:02 GMT) Full text and rfc822 format available.

Message #23 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Kanis <ivan <at> kanis.fr>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 16721 <at> debbugs.gnu.org, "K. Handa" <handa <at> gnu.org>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 17:14:45 +0100
Le 13 Février à 17h07, Juanma Barranquero a écrit :

> On Thu, Feb 13, 2014 at 4:57 PM, Ivan Kanis <ivan <at> kanis.fr> wrote:
>
>> Is a copy & paste of what emacs 24.3 report after doing a C-u C-x =
>>
>> It has 15 fields on that version.
>>
>> On trunk emacs I have tried:
>>
>> "xft:-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1"
>
> The first item, "xft:", is not part of the font, just saying which
> font backend is being used. Please remove it.

"-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-0-iso10646-1"

Gives me a Font Error. I count 14 elements.
-- 
Au banquet du bonheur bien peu sont conviés.
    -- Victor Hugo

J'écoute « Kruder & Dorfmeister - Sin - Where Shall I Turn (K&D Session Vol.2) ».




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 16:23:02 GMT) Full text and rfc822 format available.

Message #26 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Ivan Kanis <ivan <at> kanis.fr>
Cc: 16721 <at> debbugs.gnu.org, "K. Handa" <handa <at> gnu.org>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 17:21:30 +0100
On Thu, Feb 13, 2014 at 5:14 PM, Ivan Kanis <ivan <at> kanis.fr> wrote:

> "-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-0-iso10646-1"

It's weird. "semi-condensed" is one field. For comparison, take a look
at my current font spec (for DejaVu Sans Mono):

-*-DejaVu Sans Mono-normal-r-normal-*-13-*-*-*-c-*-iso8859-1

   J




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 16:25:02 GMT) Full text and rfc822 format available.

Message #29 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Ivan Kanis <ivan <at> kanis.fr>
Cc: 16721 <at> debbugs.gnu.org, "K. Handa" <handa <at> gnu.org>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 17:23:41 +0100
On Thu, Feb 13, 2014 at 5:21 PM, Juanma Barranquero <lekktu <at> gmail.com> wrote:

> -*-DejaVu Sans Mono-normal-r-normal-*-13-*-*-*-c-*-iso8859-1

Or, in the output of C-u C-x =

uniscribe:-outline-DejaVu Sans
Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1

where uniscribe:, as above, describes the font backend.

    J




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 16:26:02 GMT) Full text and rfc822 format available.

Message #32 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Ivan Kanis <ivan <at> kanis.fr>
Cc: 16721 <at> debbugs.gnu.org, "K. Handa" <handa <at> gnu.org>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 17:25:02 +0100
Ivan Kanis <ivan <at> kanis.fr> writes:

> "xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1"

semi-condensed is bogus.  It should be a single word without a dash.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Thu, 13 Feb 2014 16:37:02 GMT) Full text and rfc822 format available.

Message #35 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Kanis <ivan <at> kanis.fr>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 16721 <at> debbugs.gnu.org, "K. Handa" <handa <at> gnu.org>
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Thu, 13 Feb 2014 17:36:22 +0100
February, 13 at 17:21 Juanma Barranquero wrote:

> On Thu, Feb 13, 2014 at 5:14 PM, Ivan Kanis <ivan <at> kanis.fr> wrote:
>
>> "-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-0-iso10646-1"
>
> It's weird. "semi-condensed" is one field. For comparison, take a look
> at my current font spec (for DejaVu Sans Mono):
>
> -*-DejaVu Sans Mono-normal-r-normal-*-13-*-*-*-c-*-iso8859-1
>
>    J

I got it to work with :

-*-Symbola-*-*-*-*-20-*-*-*-*-*-iso10646-1

C-u C-x = reports

-unknown-Symbola-normal-normal-semicondensed-*-20-*-*-*-*-0-iso10646-1

There is no hyphen in semicondensed. It was a bug in 24.3.

Thanks for the help, I am closing this bug.
-- 
When you can do the common things in life in an uncommon   
way, you will command the attention of the world.
    -- George Washington Carver                                          

I am listening to "Kruder & Dorfmeister - Knowtoryous - Bomberclaad Joint (K+D Session)".




bug closed, send any further explanations to 16721 <at> debbugs.gnu.org and Ivan Kanis <ivan <at> kanis.fr> Request was from Ivan Kanis <ivan <at> kanis.fr> to control <at> debbugs.gnu.org. (Thu, 13 Feb 2014 17:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Fri, 14 Feb 2014 15:17:02 GMT) Full text and rfc822 format available.

Message #40 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: handa <at> gnu.org (K. Handa)
To: Ivan Kanis <ivan <at> kanis.fr>
Cc: 16721 <at> debbugs.gnu.org, lekktu <at> gmail.com
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Sat, 15 Feb 2014 00:16:48 +0900
In article <87eh37f0qy.fsf <at> tao.kanis.fr>, Ivan Kanis <ivan <at> kanis.fr> writes:

> "-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-0-iso10646-1"

> Gives me a Font Error. I count 14 elements.

Emacs' XLFD parser is stricter than the spec of XLFD.  For
instance, the possible value of SETWIDTH_NAME field (the 5th
one) is one of:
  undefined ultracondensed extracondensed condensed
  semicondensed medium semiexpanded expanded extraexpanded
  ultraexpanded
which are "english translation"s of defined reference value
for RELATIVE_SETWIDTH property.  See:
  http://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/XLFD/xlfd.html#font_properties

So, in the above case, Emacs thinks "semi" is not a valid
SETWIDTH_NAME of a font.

This strictness is to handle a wildcard "*" matching with
multiple fields efficently.  For instance, to find a font
matching with "*-bold-*", Emacs assumes that "bold" is for
WEIGHT_NAME field, and lists fonts whose WEIGHT_NAME field
is "bold".  This is far faster than getting all font names
and check each of them whether it contains "bold" or not.

> The font
> "xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1"
> Is a copy & paste of what emacs 24.3 report after doing a C-u C-x =

Yes, it's a bug, and should be fixed already.

---
Kenichi Handa
handa <at> gnu.org




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16721; Package emacs. (Fri, 14 Feb 2014 21:59:02 GMT) Full text and rfc822 format available.

Message #43 received at 16721 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Kanis <ivan <at> kanis.fr>
To: handa <at> gnu.org (K. Handa)
Cc: 16721 <at> debbugs.gnu.org, lekktu <at> gmail.com
Subject: Re: bug#16721: 24.3.50; can not use ext font anymore
Date: Fri, 14 Feb 2014 22:58:15 +0100
February, 15 at 0:16 K. Handa wrote:

>> The font
>> "xft:-unknown-Symbola-normal-normal-semi-condensed-*-20-*-*-*-*-0-iso10646-1"
>> Is a copy & paste of what emacs 24.3 report after doing a C-u C-x =
>
> Yes, it's a bug, and should be fixed already.

It is.
-- 
It was OK before you touched it.
    -- BOFH excuse #46




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Mar 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 160 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.