unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 14659@debbugs.gnu.org
Subject: bug#14659: 24.3.50; `modify-frame-parameters' raises error for font returned by `xs-list-fonts'
Date: Tue, 18 Jun 2013 14:26:34 -0700 (PDT)	[thread overview]
Message-ID: <afadb85f-976f-45c0-9c06-6471a95c4c80@default> (raw)

Not sure there is a bug here, but I think so.

(x-list-fonts "*") returns a list containing this XLFD font name
(and two other names that are similar):
"-outline-DFKai-SB-normal-normal-normal-script-*-*-*-*-c-*-iso8859-1".

That is not a valid XFLD name (e.g., it contains 15, not 14, hyphens).
And this error is raised by `modify-frame-parameters':

Debugger entered--Lisp error: (error "Font `-outline-DFKai-SB-normal-normal-normal-script-*-*-*-*-c-*-iso8859-1' is not defined")
  modify-frame-parameters(#<frame throw-i-font.el 06b50270> ((font . "-outline-DFKai-SB-normal-normal-normal-script-*-*-*-*-c-*-iso8859-1")))

Should `xs-list-fonts' return only valid XFLD font names?  Or is the
current behavior correct on all counts?

Note that I can use this font otherwise.  E.g., in emacs -Q I can
S-mouse-1, `Change Buffer Font', choose `DFKai-SB', and the font is
used OK.  That uses `x-select-font'.  So perhaps the bug is with
`modify-frame-parameters' (?).

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=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 CFLAGS=-O0 -g3 LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'





             reply	other threads:[~2013-06-18 21:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<afadb85f-976f-45c0-9c06-6471a95c4c80@default>
     [not found] ` <<87eeyrwl9t.fsf@gnus.org>
     [not found]   ` <<fa4a2a19-2888-418d-918c-254721679808@default>
     [not found]     ` <<83eeyrl8h0.fsf@gnu.org>
2013-06-18 21:26       ` Drew Adams [this message]
2019-11-01 17:37         ` bug#14659: 24.3.50; `modify-frame-parameters' raises error for font returned by `xs-list-fonts' Lars Ingebrigtsen
2019-11-01 18:04           ` Drew Adams
2019-11-02 14:38             ` Lars Ingebrigtsen
2019-11-01 18:22           ` Drew Adams
2019-11-01 19:09             ` Eli Zaretskii
2019-11-01 21:11         ` Drew Adams
2019-11-01 21:25           ` Eli Zaretskii
2019-11-01 21:02       ` Drew Adams
2019-11-03  3:24         ` Richard Stallman
     [not found] <<<afadb85f-976f-45c0-9c06-6471a95c4c80@default>
     [not found] ` <<<87eeyrwl9t.fsf@gnus.org>
     [not found]   ` <<<fa4a2a19-2888-418d-918c-254721679808@default>
     [not found]     ` <<<83eeyrl8h0.fsf@gnu.org>
     [not found]       ` <<f89b06c1-e96f-4eea-af6b-f1355a9af803@default>
     [not found]         ` <<83y2wzjnm5.fsf@gnu.org>
2019-11-01 21:34           ` Drew Adams
2019-11-01 22:16             ` Stefan Kangas
2019-11-01 22:23               ` Drew Adams
2019-11-01 22:56                 ` Stephen Berman
2019-11-01 23:07                   ` Drew Adams
2019-11-01 23:05                 ` Lars Ingebrigtsen
2019-11-01 23:12                   ` Drew Adams
2019-11-02 14:57                     ` Lars Ingebrigtsen
2019-11-02  7:01             ` Eli Zaretskii
2019-11-02  7:26               ` Stefan Kangas
2019-11-02  8:42                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afadb85f-976f-45c0-9c06-6471a95c4c80@default \
    --to=drew.adams@oracle.com \
    --cc=14659@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).