[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: font-info returns nil on default font (emacs -q) --

From: Kenichi Handa
Subject: Re: address@hidden: font-info returns nil on default font (emacs -q) -- BUG?]
Date: Sat, 25 Sep 2004 11:31:01 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Richard Stallman <address@hidden> writes:

> Could you please think about this and do whatever is right?
> ------- Start of forwarded message -------
> From: "Drew Adams" <address@hidden>
> To: <address@hidden>, "Help-Gnu-Emacs" <address@hidden>,
>       "Help-Emacs-Windows" <address@hidden>
> Subject: font-info returns nil on default font (emacs -q) -- BUG?
> Don't know if this is a bug, because I don't know much about font functions.

> Function font-info's doc string says that it returns nil if the argument
> font is not yet loaded. I'm not sure what "loaded" means here, but with
> vanilla Emacs I would expect that the font used is "loaded". However, I get
> nil with font-info.

> I'm on GNU Emacs (i386-mingw-nt5.1.2600) of 2004-07-26 on
> BERATUNG4. I'm on Windows XP SP1.

> The (default) font is apparently this:
> "-outline-Courier New-normal-r-normal-normal-13-97-96-96-c-80-iso8859-1"

> x-decompose-font-name works fine, but font-info returns nil.

> Is this correct behavior or a bug?

It seems like a bug, but I can't reproduce it on GNU-Linux.
The function Ffont_info (in fontset.c) calls a function set
in the variable query_font_func, and on Windows XP, I think
it is set to w32_query_font.  So, I guess there's something
wrong in that function.

Ken'ichi HANDA address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]