unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16721: 24.3.50; can not use ext font anymore
@ 2014-02-11 11:04 Ivan Kanis
  2014-02-11 21:27 ` Glenn Morris
  0 siblings, 1 reply; 13+ messages in thread
From: Ivan Kanis @ 2014-02-11 11:04 UTC (permalink / raw)
  To: 16721

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@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)





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-11 11:04 bug#16721: 24.3.50; can not use ext font anymore Ivan Kanis
@ 2014-02-11 21:27 ` Glenn Morris
  2014-02-13 12:48   ` K. Handa
  0 siblings, 1 reply; 13+ messages in thread
From: Glenn Morris @ 2014-02-11 21:27 UTC (permalink / raw)
  To: 16721; +Cc: Ivan Kanis

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@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.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-11 21:27 ` Glenn Morris
@ 2014-02-13 12:48   ` K. Handa
  2014-02-13 13:48     ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: K. Handa @ 2014-02-13 12:48 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 16721, ivan

In article <6od2ituyp4.fsf@fencepost.gnu.org>, Glenn Morris <rgm@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@gnu.org





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 12:48   ` K. Handa
@ 2014-02-13 13:48     ` Stefan Monnier
  2014-02-13 15:57       ` Ivan Kanis
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Monnier @ 2014-02-13 13:48 UTC (permalink / raw)
  To: K. Handa; +Cc: 16721, ivan

> 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





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 13:48     ` Stefan Monnier
@ 2014-02-13 15:57       ` Ivan Kanis
  2014-02-13 16:07         ` Juanma Barranquero
  2014-02-13 16:25         ` Andreas Schwab
  0 siblings, 2 replies; 13+ messages in thread
From: Ivan Kanis @ 2014-02-13 15:57 UTC (permalink / raw)
  To: K. Handa; +Cc: 16721


>> 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)".





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 15:57       ` Ivan Kanis
@ 2014-02-13 16:07         ` Juanma Barranquero
  2014-02-13 16:14           ` Ivan Kanis
  2014-02-13 16:25         ` Andreas Schwab
  1 sibling, 1 reply; 13+ messages in thread
From: Juanma Barranquero @ 2014-02-13 16:07 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: 16721

On Thu, Feb 13, 2014 at 4:57 PM, Ivan Kanis <ivan@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.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 16:07         ` Juanma Barranquero
@ 2014-02-13 16:14           ` Ivan Kanis
  2014-02-13 16:21             ` Juanma Barranquero
  2014-02-14 15:16             ` K. Handa
  0 siblings, 2 replies; 13+ messages in thread
From: Ivan Kanis @ 2014-02-13 16:14 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 16721

Le 13 Février à 17h07, Juanma Barranquero a écrit :

> On Thu, Feb 13, 2014 at 4:57 PM, Ivan Kanis <ivan@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) ».





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 16:14           ` Ivan Kanis
@ 2014-02-13 16:21             ` Juanma Barranquero
  2014-02-13 16:23               ` Juanma Barranquero
  2014-02-13 16:36               ` Ivan Kanis
  2014-02-14 15:16             ` K. Handa
  1 sibling, 2 replies; 13+ messages in thread
From: Juanma Barranquero @ 2014-02-13 16:21 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: 16721

On Thu, Feb 13, 2014 at 5:14 PM, Ivan Kanis <ivan@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





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 16:21             ` Juanma Barranquero
@ 2014-02-13 16:23               ` Juanma Barranquero
  2014-02-13 16:36               ` Ivan Kanis
  1 sibling, 0 replies; 13+ messages in thread
From: Juanma Barranquero @ 2014-02-13 16:23 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: 16721

On Thu, Feb 13, 2014 at 5:21 PM, Juanma Barranquero <lekktu@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





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 15:57       ` Ivan Kanis
  2014-02-13 16:07         ` Juanma Barranquero
@ 2014-02-13 16:25         ` Andreas Schwab
  1 sibling, 0 replies; 13+ messages in thread
From: Andreas Schwab @ 2014-02-13 16:25 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: 16721

Ivan Kanis <ivan@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@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 16:21             ` Juanma Barranquero
  2014-02-13 16:23               ` Juanma Barranquero
@ 2014-02-13 16:36               ` Ivan Kanis
  1 sibling, 0 replies; 13+ messages in thread
From: Ivan Kanis @ 2014-02-13 16:36 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 16721

February, 13 at 17:21 Juanma Barranquero wrote:

> On Thu, Feb 13, 2014 at 5:14 PM, Ivan Kanis <ivan@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)".





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-13 16:14           ` Ivan Kanis
  2014-02-13 16:21             ` Juanma Barranquero
@ 2014-02-14 15:16             ` K. Handa
  2014-02-14 21:58               ` Ivan Kanis
  1 sibling, 1 reply; 13+ messages in thread
From: K. Handa @ 2014-02-14 15:16 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: 16721, lekktu

In article <87eh37f0qy.fsf@tao.kanis.fr>, Ivan Kanis <ivan@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@gnu.org





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#16721: 24.3.50; can not use ext font anymore
  2014-02-14 15:16             ` K. Handa
@ 2014-02-14 21:58               ` Ivan Kanis
  0 siblings, 0 replies; 13+ messages in thread
From: Ivan Kanis @ 2014-02-14 21:58 UTC (permalink / raw)
  To: K. Handa; +Cc: 16721, lekktu

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





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-02-14 21:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 11:04 bug#16721: 24.3.50; can not use ext font anymore Ivan Kanis
2014-02-11 21:27 ` Glenn Morris
2014-02-13 12:48   ` K. Handa
2014-02-13 13:48     ` Stefan Monnier
2014-02-13 15:57       ` Ivan Kanis
2014-02-13 16:07         ` Juanma Barranquero
2014-02-13 16:14           ` Ivan Kanis
2014-02-13 16:21             ` Juanma Barranquero
2014-02-13 16:23               ` Juanma Barranquero
2014-02-13 16:36               ` Ivan Kanis
2014-02-14 15:16             ` K. Handa
2014-02-14 21:58               ` Ivan Kanis
2014-02-13 16:25         ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).