From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [drew.adams@oracle.com: font-info returns nil on default font (emacs -q) -- BUG?] Date: Sat, 25 Sep 2004 11:31:01 +0900 (JST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200409250231.LAA15333@etlken.m17n.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1096079490 18396 80.91.229.6 (25 Sep 2004 02:31:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Sep 2004 02:31:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 25 04:31:20 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CB2LI-0007fE-00 for ; Sat, 25 Sep 2004 04:31:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CB2RP-000210-ER for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2004 22:37:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CB2RF-00020B-8M for emacs-devel@gnu.org; Fri, 24 Sep 2004 22:37:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CB2RC-0001y4-CQ for emacs-devel@gnu.org; Fri, 24 Sep 2004 22:37:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CB2RC-0001xg-2e for emacs-devel@gnu.org; Fri, 24 Sep 2004 22:37:26 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CB2L2-0001fn-5C; Fri, 24 Sep 2004 22:31:05 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-6.6) with ESMTP id i8P2V1qf032063; Sat, 25 Sep 2004 11:31:01 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/8.11.6) with ESMTP id i8P2V1U22639; Sat, 25 Sep 2004 11:31:01 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id LAA15333; Sat, 25 Sep 2004 11:31:01 +0900 (JST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Fri, 24 Sep 2004 19:41:28 -0400) 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) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27553 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27553 In article , Richard Stallman writes: > Could you please think about this and do whatever is right? > ------- Start of forwarded message ------- > From: "Drew Adams" > To: , "Help-Gnu-Emacs" , > "Help-Emacs-Windows" > 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 21.3.50.1 (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 handa@m17n.org