From unknown Fri Jun 20 18:11:54 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#14648 <14648@debbugs.gnu.org> To: bug#14648 <14648@debbugs.gnu.org> Subject: Status: 24.3.50; `font' frame parameter bizarreness Reply-To: bug#14648 <14648@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:11:54 +0000 retitle 14648 24.3.50; `font' frame parameter bizarreness reassign 14648 emacs submitter 14648 Drew Adams severity 14648 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 18 01:49:25 2013 Received: (at submit) by debbugs.gnu.org; 18 Jun 2013 05:49:25 +0000 Received: from localhost ([127.0.0.1]:52081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoonE-0001v9-ND for submit@debbugs.gnu.org; Tue, 18 Jun 2013 01:49:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57887) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoonC-0001us-Ps for submit@debbugs.gnu.org; Tue, 18 Jun 2013 01:49:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uoon6-0006YB-9F for submit@debbugs.gnu.org; Tue, 18 Jun 2013 01:49:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uoon6-0006Y6-6j for submit@debbugs.gnu.org; Tue, 18 Jun 2013 01:49:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uoon5-0005pW-4J for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2013 01:49:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uoon2-0006Wi-Mt for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2013 01:49:15 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:30084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uoon2-0006WZ-HF for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2013 01:49:12 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5I5nBKw012043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 18 Jun 2013 05:49:11 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5I5nASh010099 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 Jun 2013 05:49:11 GMT Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5I5nAoh010093 for ; Tue, 18 Jun 2013 05:49:10 GMT MIME-Version: 1.0 Message-ID: <5254f82d-9d1e-448c-83b1-17f87b64aa7b@default> Date: Mon, 17 Jun 2013 22:49:09 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.3.50; `font' frame parameter bizarreness X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) emacs -Q (modify-frame-parameters (selected-frame) '((font . "-outline-Gabriola-normal-normal-normal-decorative"))) Note that the font string here is not a valid XFLD, but it has the first 6 fields of a valid XFLD. If it were suffixed by "-*-*-*-*-*-*-*-*" then the value would be a valid XFLD (and the bug described below would not be realized - things work correctly). The font of the frame is indeed changed, but not to the font specified, and not to the default font either (e.g., the font for face `default'). (frame-parameter nil 'font) =3D> "-outline-Arial-normal-normal-normal-sans-20-*-*-*-p-*-iso8859-1" What's that? The doc says nothing about this bizarre behavior. Where did this font come from? The doc ((elisp) `Font and Color Parameters') says that the `font' parameter value: "is a string, either a valid font name for your system or the name of an Emacs fontset (*note Fontsets::). It is equivalent to the `font' attribute of the `default' face." IOW, it must be valid. The doc does not specify what happens if it is not valid, but it should. And if you provide an invalid string such as just "foobar" as the `font' parameter value (e.g., in the `modify-frame-parameters' above) then you do get an Emacs error stating that the font name is not valid. That presumably is the right behavior for any invalid font name, including the "...Gabriola..." one used above. Why do you not get such an error with that invalid font name? Shouldn't you? And why do you get the particular (undocumented) font that you do get. Why should Emacs modify the frame to give you something other than what you asked for? And if it should, then this odd "defaulting" behavior should be documented. 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=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs CFLAGS=3D-O0 -g3 LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include' From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 18 11:17:08 2013 Received: (at 14648) by debbugs.gnu.org; 18 Jun 2013 15:17:08 +0000 Received: from localhost ([127.0.0.1]:53267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uoxec-0005Kb-Vo for submit@debbugs.gnu.org; Tue, 18 Jun 2013 11:17:07 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:43104 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uoxea-0005KQ-PN for 14648@debbugs.gnu.org; Tue, 18 Jun 2013 11:17:05 -0400 Received: from handa by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Uoxea-0005Ny-5k; Tue, 18 Jun 2013 11:17:04 -0400 From: Kenichi Handa To: Drew Adams Subject: Re: bug#14648: 24.3.50; `font' frame parameter bizarreness In-Reply-To: <5254f82d-9d1e-448c-83b1-17f87b64aa7b@default> (message from Drew Adams on Mon, 17 Jun 2013 22:49:09 -0700 (PDT)) Date: Tue, 18 Jun 2013 11:17:04 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 14648 Cc: 14648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.2 (------) In article <5254f82d-9d1e-448c-83b1-17f87b64aa7b@default>, Drew Adams writes: > emacs -Q > (modify-frame-parameters > (selected-frame) > '((font . "-outline-Gabriola-normal-normal-normal-decorative"))) > Note that the font string here is not a valid XFLD, but it has the > first > 6 fields of a valid XFLD. If it were suffixed by "-*-*-*-*-*-*-*-*" > then the value would be a valid XFLD (and the bug described below > would > not be realized - things work correctly). > The font of the frame is indeed changed, but not to the font > specified, > and not to the default font either (e.g., the font for face > `default'). Thank you for the report. I've just installed a fix to signal an error for an invalid font name in such a case. > (frame-parameter nil 'font) => > "-outline-Arial-normal-normal-normal-sans-20-*-*-*-p-*-iso8859-1" > What's that? The doc says nothing about this bizarre behavior. > Where did this font come from? It may be the default font found on your system when none of font property is specified. --- Kenichi Handa handa@gnu.org From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 02:02:29 2014 Received: (at 14648) by debbugs.gnu.org; 8 Feb 2014 07:02:29 +0000 Received: from localhost ([127.0.0.1]:56300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC1vp-0003IU-6M for submit@debbugs.gnu.org; Sat, 08 Feb 2014 02:02:29 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:43079) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC1vm-0003IL-4t for 14648@debbugs.gnu.org; Sat, 08 Feb 2014 02:02:26 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WC1vM-000712-2I; Sat, 08 Feb 2014 08:02:00 +0100 From: Lars Ingebrigtsen To: Kenichi Handa Subject: Re: bug#14648: 24.3.50; `font' frame parameter bizarreness References: <5254f82d-9d1e-448c-83b1-17f87b64aa7b@default> Date: Fri, 07 Feb 2014 23:00:51 -0800 In-Reply-To: (Kenichi Handa's message of "Tue, 18 Jun 2013 11:17:04 -0400") Message-ID: <87siruw0kc.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WC1vM-000712-2I X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392447721.79806@Vs3PmZo78GFEZhvKw7hDLg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14648 Cc: 14648@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Kenichi Handa writes: >> The font of the frame is indeed changed, but not to the font >> specified, >> and not to the default font either (e.g., the font for face >> `default'). > > Thank you for the report. I've just installed a fix to signal an error > for an invalid font name in such a case. > >> (frame-parameter nil 'font) => >> "-outline-Arial-normal-normal-normal-sans-20-*-*-*-p-*-iso8859-1" > >> What's that? The doc says nothing about this bizarre behavior. >> Where did this font come from? > > It may be the default font found on your system when none of > font property is specified. Looks like this is fixed, then? I'm closing the report; please reopen if this is still a problem. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 02:02:33 2014 Received: (at control) by debbugs.gnu.org; 8 Feb 2014 07:02:33 +0000 Received: from localhost ([127.0.0.1]:56303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC1vr-0003In-SH for submit@debbugs.gnu.org; Sat, 08 Feb 2014 02:02:32 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:43082) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC1vq-0003IV-1x for control@debbugs.gnu.org; Sat, 08 Feb 2014 02:02:30 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WC1vQ-00071A-Ta for control@debbugs.gnu.org; Sat, 08 Feb 2014 08:02:05 +0100 Date: Fri, 07 Feb 2014 23:00:56 -0800 Message-Id: <87r47ew0k7.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14648 X-MailScanner-ID: 1WC1vQ-00071A-Ta X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392447725.80911@YAoLgYyEaJHNlmidVmTjXg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) close 14648 From unknown Fri Jun 20 18:11:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 08 Mar 2014 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator