From unknown Sat Jun 21 10:45:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#3081 <3081@debbugs.gnu.org> To: bug#3081 <3081@debbugs.gnu.org> Subject: Status: 23.0.92; x-list-fonts no longer gives correct result - substitutes * for fixed font size Reply-To: bug#3081 <3081@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:45:53 +0000 retitle 3081 23.0.92; x-list-fonts no longer gives correct result - substit= utes * for fixed font size reassign 3081 emacs submitter 3081 "Drew Adams" severity 3081 normal thanks From drew.adams@oracle.com Wed Apr 22 10:03:53 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Apr 2009 17:03:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3MH3nMQ000926 for ; Wed, 22 Apr 2009 10:03:51 -0700 Received: from mail.gnu.org ([199.232.76.166]:41131 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LwfrQ-0006s9-Bw for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:03:48 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LwfrN-00082G-4y for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:03:47 -0400 Received: from rcsinet12.oracle.com ([148.87.113.124]:41223 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LwfrL-00081W-Kc for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:03:44 -0400 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3MH3b5c026499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 22 Apr 2009 17:03:38 GMT Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3MH3Z5n014933 for ; Wed, 22 Apr 2009 17:03:36 GMT Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 22 Apr 2009 10:03:34 -0700 From: "Drew Adams" To: Subject: 23.0.92; x-list-fonts no longer gives correct result - substitutes * for fixed font size Date: Wed, 22 Apr 2009 10:03:30 -0700 Message-ID: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcnDbELAZBEo/zD8Qh+1Zlf1XKRJgw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt701.oracle.com [141.146.40.71] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A01020A.49EF4DE8.0205:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) I have this defcustom, which I use to choose a small font: (defcustom palette-font (and window-system (or (car (x-list-fonts "-*-Courier-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 1 (car (x-list-fonts "-*-fixed-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 2 (car (x-list-fonts "-*-Terminal-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 3 (car (x-list-fonts "-*-*-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)))) ;4 "...") [Ignore the fact that perhaps (display-graphic-p) should be used in place of window-system.] In Emacs 23, the x-list-fonts sexps return these values (in MS Windows XP with the fonts I have on my laptop): 1. ("-outline-Courier-normal-i-normal-normal-5-37-96-96-c-*-iso8859-1") 2. nil 3. nil 4. ("-outline-Souvenir Lt BT-normal-i-normal-normal-5-37-96-96-p-*-iso8859-1") In Emacs 23, these are the values: 1. ("-outline-Courier-bold-normal-normal-mono-*-*-*-*-c-*-iso8859-1") 2. nil 3. nil 4. ("-outline-Lucida Sans Typewriter-bold-normal-normal-sans-*-*-*-*-c-*-iso8859-1") The first difference to notice is #4: a completely different font family is used. Why should this be? Anyway, I don't really have a problem with this. The problem is that the font size is not correct: * instead of a real font size. The whole point of this defcustom is to try to find a default value for the option that provides a tiny font that the user has available. It tries to match various fonts of size 5, until it finds a match. In Emacs 23, this size info seems to be ignored, and the generic * is used. That has the result of using a very large font (for this application, which needs a tiny font). Which defeats the purpose of the defcustom. In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600) of 2009-03-30 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' From drew.adams@oracle.com Wed Apr 22 10:36:28 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Apr 2009 17:36:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3MHaP8A010418 for ; Wed, 22 Apr 2009 10:36:26 -0700 Received: from mx10.gnu.org ([199.232.76.166]:42712) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LwgMx-000862-04 for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:36:23 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LwgMv-0003zp-Eo for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:36:22 -0400 Received: from rcsinet11.oracle.com ([148.87.113.123]:55043 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LwgMv-0003zf-4e for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:36:21 -0400 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3MHaBRc010013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 22 Apr 2009 17:36:12 GMT Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3MHa8ho022334; Wed, 22 Apr 2009 17:36:09 GMT Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 22 Apr 2009 10:36:07 -0700 From: "Drew Adams" To: <3081@debbugs.gnu.org>, References: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> Subject: RE: bug#3081: 23.0.92;x-list-fonts no longer gives correct result - substitutes * forfixed font size Date: Wed, 22 Apr 2009 10:36:03 -0700 Message-ID: <001401c9c370$d20f95c0$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> Thread-Index: AcnDbELAZBEo/zD8Qh+1Zlf1XKRJgwABDnlQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt703.oracle.com [141.146.40.81] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A01020A.49EF5589.01B1:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) Some more info. In the frames that use this font as their default font, I see these differences: Emacs 22: (font . "-outline-Courier-normal-i-normal-normal-5-37-96-96-c-*-iso8859-1") Emacs 23: (font . "-outline-Courier-bold-normal-normal-mono-14-*-*-*-c-*-iso8859-1") (font-parameter . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1") (font-backend uniscribe gdi) Dunno if that helps you figure out the problem. The frame's font size (height) in Emacs 22 is 5, as defined by my user option `palette-font' (that's the whole point of the option). The font size in Emacs 23 is 14. Perhaps that came indirectly from `default-frame-alist' somehow? The `font' parameter in `default-frame-alist' is this (in both Emacs 22 and 23): (font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1") This behavior is in any case completely wrong. My code explicitly sets the `font' frame parameter to the value of `palette-font' (using `modify-frame-parameters'). But in Emacs 23 that value incorrectly has a *, not a 5, for the font height. From handa@m17n.org Wed Apr 22 19:07:28 2009 Received: (at 3081) by emacsbugs.donarmstrong.com; 23 Apr 2009 02:07:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.5 required=4.0 tests=HAS_BUG_NUMBER, IMPRONONCABLE_2,MONEY autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3N27PQk011973 for <3081@emacsbugs.donarmstrong.com>; Wed, 22 Apr 2009 19:07:26 -0700 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n3N27NpW003245; Thu, 23 Apr 2009 11:07:23 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n3N27NAt020006; Thu, 23 Apr 2009 11:07:23 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id n3N27NSq015654; Thu, 23 Apr 2009 11:07:23 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LwoLr-0004hH-W2; Thu, 23 Apr 2009 11:07:47 +0900 From: Kenichi Handa To: Drew Adams , 3081@debbugs.gnu.org In-reply-to: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> (drew.adams@oracle.com) Subject: Re: bug#3081: 23.0.92; x-list-fonts no longer gives correct result - substitutes * for fixed font size References: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> Message-Id: Date: Thu, 23 Apr 2009 11:07:47 +0900 In article <000b01c9c36c$460c3820$c2b22382@us.oracle.com>, "Drew Adams" writes: > I have this defcustom, which I use to choose a small font: > (defcustom palette-font > (and window-system > (or (car (x-list-fonts > "-*-Courier-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 1 > (car (x-list-fonts "-*-fixed-*-*-*-*-5-*-*-*-*-*-iso8859-1" > nil nil 1)) ; 2 > (car (x-list-fonts > "-*-Terminal-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 3 > (car (x-list-fonts "-*-*-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil > nil 1)))) ;4 > "...") [...] > In Emacs 23, these are the values: > 1. ("-outline-Courier-bold-normal-normal-mono-*-*-*-*-c-*-iso8859-1") > 2. nil > 3. nil > 4. ("-outline-Lucida Sans > Typewriter-bold-normal-normal-sans-*-*-*-*-c-*-iso8859-1") > The first difference to notice is #4: a completely different font > family is used. Why should this be? Anyway, I don't really have a > problem with this. If you don't specify a family, which family is selected is completely arbitrary. > The problem is that the font size is not correct: * instead of a real > font size. The whole point of this defcustom is to try to find a > default value for the option that provides a tiny font that the user > has available. It tries to match various fonts of size 5, until it > finds a match. I installed a fix. Please try again. --- Kenichi Handa handa@m17n.org From drew.adams@oracle.com Wed Apr 22 22:02:05 2009 Received: (at 3081) by emacsbugs.donarmstrong.com; 23 Apr 2009 05:02:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from rgminet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3N51vOD023621 for <3081@emacsbugs.donarmstrong.com>; Wed, 22 Apr 2009 22:01:59 -0700 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3N51pxG028380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Apr 2009 05:01:52 GMT Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3N51lm9007835; Thu, 23 Apr 2009 05:01:49 GMT Received: from dradamslap1 (/98.210.250.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 22 Apr 2009 22:01:46 -0700 From: "Drew Adams" To: "'Kenichi Handa'" , <3081@debbugs.gnu.org> References: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> Subject: RE: bug#3081: 23.0.92;x-list-fonts no longer gives correct result - substitutes * forfixed font size Date: Wed, 22 Apr 2009 22:01:45 -0700 Message-ID: <003001c9c3d0$9a15bea0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcnDuFq1KxTjjEuTTee1bqXQLTJChgAF9IjA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A09020A.49EFF63D.00B4:SCFMA4539814,ss=1,fgs=0 > > I have this defcustom, which I use to choose a small font: > > (defcustom palette-font > > (and window-system > > (or (car (x-list-fonts > > "-*-Courier-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 1 > > (car (x-list-fonts > "-*-fixed-*-*-*-*-5-*-*-*-*-*-iso8859-1" > > nil nil 1)) ; 2 > > (car (x-list-fonts > > "-*-Terminal-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 3 > > (car (x-list-fonts > "-*-*-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil > > nil 1)))) ;4 > > "...") > [...] > > In Emacs 23, these are the values: > > > 1. > ("-outline-Courier-bold-normal-normal-mono-*-*-*-*-c-*-iso8859-1") > > 2. nil > > 3. nil > > 4. ("-outline-Lucida Sans > > Typewriter-bold-normal-normal-sans-*-*-*-*-c-*-iso8859-1") > > > The first difference to notice is #4: a completely different font > > family is used. Why should this be? Anyway, I don't really have a > > problem with this. > > If you don't specify a family, which family is selected is > completely arbitrary. I guess you're speaking about #2 and #3 - the nil values. That's OK. (And thanks for the explanation.) > > The problem is that the font size is not correct: * instead > > of a real font size. The whole point of this defcustom is to try to find a > > default value for the option that provides a tiny font that the user > > has available. It tries to match various fonts of size 5, until it > > finds a match. > > I installed a fix. Please try again. Thanks for the quick fix. What do I need to pick up, to try it? Is this a Lisp fix (which library)? If not, I don't build Emacs, so I'll just take your word for it, and I'll check it in the next MS Windows binary that I can get hold of. Thx - Drew From handa@m17n.org Thu Apr 23 04:26:02 2009 Received: (at 3081) by emacsbugs.donarmstrong.com; 23 Apr 2009 11:26:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.4 required=4.0 tests=FOURLA,HAS_BUG_NUMBER, IMPRONONCABLE_2,MONEY,STOCKLIKE autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3NBPwRB025038 for <3081@emacsbugs.donarmstrong.com>; Thu, 23 Apr 2009 04:26:00 -0700 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n3NBPvF3014907; Thu, 23 Apr 2009 20:25:57 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n3NBPubg019576; Thu, 23 Apr 2009 20:25:56 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id n3NBPuJc020228; Thu, 23 Apr 2009 20:25:56 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1Lwx4P-0005v2-Sc; Thu, 23 Apr 2009 20:26:21 +0900 From: Kenichi Handa To: "Drew Adams" CC: 3081@debbugs.gnu.org In-reply-to: <003001c9c3d0$9a15bea0$0200a8c0@us.oracle.com> (drew.adams@oracle.com) Subject: Re: bug#3081: 23.0.92;x-list-fonts no longer gives correct result - substitutes * forfixed font size References: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> <003001c9c3d0$9a15bea0$0200a8c0@us.oracle.com> Message-Id: Date: Thu, 23 Apr 2009 20:26:21 +0900 In article <003001c9c3d0$9a15bea0$0200a8c0@us.oracle.com>, "Drew Adams" writes: > > > I have this defcustom, which I use to choose a small font: > > > (defcustom palette-font > > > (and window-system > > > (or (car (x-list-fonts > > > "-*-Courier-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 1 > > > (car (x-list-fonts > > "-*-fixed-*-*-*-*-5-*-*-*-*-*-iso8859-1" > > > nil nil 1)) ; 2 > > > (car (x-list-fonts > > > "-*-Terminal-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 3 > > > (car (x-list-fonts > > "-*-*-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil > > > nil 1)))) ;4 > > > "...") > > [...] > > > In Emacs 23, these are the values: > > > > > 1. > > ("-outline-Courier-bold-normal-normal-mono-*-*-*-*-c-*-iso8859-1") > > > 2. nil > > > 3. nil > > > 4. ("-outline-Lucida Sans > > > Typewriter-bold-normal-normal-sans-*-*-*-*-c-*-iso8859-1") > > > > > The first difference to notice is #4: a completely different font > > > family is used. Why should this be? Anyway, I don't really have a > > > problem with this. > > > > If you don't specify a family, which family is selected is > > completely arbitrary. > I guess you're speaking about #2 and #3 - the nil values. That's OK. (And thanks > for the explanation.) No, I'm speaking about #4. In #2 and #3 you specify family name ("fixed" and "terminal" respectively). > > > The problem is that the font size is not correct: * instead > > > of a real font size. The whole point of this defcustom is to try to find a > > > default value for the option that provides a tiny font that the user > > > has available. It tries to match various fonts of size 5, until it > > > finds a match. > > > > I installed a fix. Please try again. > Thanks for the quick fix. > What do I need to pick up, to try it? Is this a Lisp fix (which library)? No, the change was in src/xfaces.c. 2009-04-23 Kenichi Handa * xfaces.c (Fx_list_fonts): If a font size is specified in PATTERN, set it in returned scalable fonts. Index: xfaces.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/xfaces.c,v retrieving revision 1.432 retrieving revision 1.433 diff -u -r1.432 -r1.433 --- xfaces.c 16 Apr 2009 01:08:24 -0000 1.432 +++ xfaces.c 23 Apr 2009 01:33:33 -0000 1.433 @@ -1904,7 +1904,22 @@ } args[0] = Flist_fonts (font_spec, frame, maximum, font_spec); for (tail = args[0]; CONSP (tail); tail = XCDR (tail)) - XSETCAR (tail, Ffont_xlfd_name (XCAR (tail), Qnil)); + { + Lisp_Object font_entity; + + font_entity = XCAR (tail); + if ((NILP (AREF (font_entity, FONT_SIZE_INDEX)) + || XINT (AREF (font_entity, FONT_SIZE_INDEX)) == 0) + && ! NILP (AREF (font_spec, FONT_SIZE_INDEX))) + { + /* This is a scalable font. For backward compatibility, + we set the specified size. */ + font_entity = Fcopy_font_spec (font_entity); + ASET (font_entity, FONT_SIZE_INDEX, + AREF (font_spec, FONT_SIZE_INDEX)); + } + XSETCAR (tail, Ffont_xlfd_name (font_entity, Qnil)); + } if (NILP (frame)) /* We don't have to check fontsets. */ return args[0]; --- Kenichi Handa handa@m17n.org From drew.adams@oracle.com Thu Apr 23 06:58:29 2009 Received: (at 3081) by emacsbugs.donarmstrong.com; 23 Apr 2009 13:58:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from rgminet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3NDwQvI030617 for <3081@emacsbugs.donarmstrong.com>; Thu, 23 Apr 2009 06:58:28 -0700 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3NDwKKA018153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Apr 2009 13:58:21 GMT Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3NDwGcm003659; Thu, 23 Apr 2009 13:58:17 GMT Received: from dradamslap1 (/141.144.160.42) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 23 Apr 2009 06:58:15 -0700 From: "Drew Adams" To: "'Kenichi Handa'" Cc: <3081@debbugs.gnu.org> References: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> <003001c9c3d0$9a15bea0$0200a8c0@us.oracle.com> Subject: RE: bug#3081: 23.0.92;x-list-fonts no longer gives correct result - substitutes * forfixed font size Date: Thu, 23 Apr 2009 06:58:07 -0700 Message-ID: <000301c9c41b$8c04dda0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcnEBt8uFoa2pgCQRTWan7dD1ahCqAAE/V/A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt702.oracle.com [141.146.40.80] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.49F073FA.0017:SCFMA4539814,ss=1,fgs=0 > > > If you don't specify a family, which family is selected is > > > completely arbitrary. > > > I guess you're speaking about #2 and #3 - the nil values. > > That's OK. (And thanks for the explanation.) > > No, I'm speaking about #4. In #2 and #3 you specify family > name ("fixed" and "terminal" respectively). Oh, right. That's OK too. > + /* This is a scalable font. For backward compatibility, > + we set the specified size. */ It's not important, but I disagree a bit with that characterization. This is not just for backward compatibility. If you provide size in the input pattern, then it should be taken into account, regardless of the Emacs version (going backward or forward). Same thing with other input fields - they need to be matched and retained. I mention this because that comment might lead someone to believe at some point that this was no longer needed. Thx. From cyd@stupidchicken.com Fri Apr 24 18:32:05 2009 Received: (at control) by emacsbugs.donarmstrong.com; 25 Apr 2009 01:32:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3P1W3Qs009805 for ; Fri, 24 Apr 2009 18:32:04 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 9E00757E25A; Fri, 24 Apr 2009 21:33:59 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 3081 Date: Fri, 24 Apr 2009 21:33:59 -0400 Message-ID: <87hc0dfreg.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 3081 reassign 3096 spam reassign 3097 spam reassign 3100 spam thanks From unknown Sat Jun 21 10:45:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 May 2009 14:24:09 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator