From unknown Tue Aug 19 14:23:25 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3478: Error in set-default-font Reply-To: "Mickey Ferguson" , 3478@debbugs.gnu.org Resent-From: "Mickey Ferguson" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Jun 2009 00:05:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3478 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124424638722681 (code B ref -1); Sat, 06 Jun 2009 00:05:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jun 2009 23:59:47 +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=2.1 required=4.0 tests=FOURLA,THREADTOPIC autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n55NxglY022676 for ; Fri, 5 Jun 2009 16:59:43 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCjK2-0003xW-IK for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 19:59:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCjJz-0003x9-2x for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 19:59:42 -0400 Received: from [199.232.76.173] (port=41914 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCjJy-0003x6-SR for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 19:59:38 -0400 Received: from mail.plantcml.com ([67.151.52.22]:58371 helo=plantcml.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCjJy-00030U-An for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 19:59:38 -0400 Received: from ([172.16.4.102]) by mail.plantcml.com with ESMTP id 8YS9KF1.4585032; Fri, 05 Jun 2009 16:52:36 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 5 Jun 2009 16:59:29 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: thread-topic: Error in set-default-font Thread-Index: AcnmOaqpgICNRoDRQPSTLdFsOomVwA== From: "Mickey Ferguson" To: X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO configured using `configure --with-gcc (3.2)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When I execute the following two lines of code: (set-default-font "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin") emacs changes the size of the window (frame) so that it no longer displays 80 columns. Instead it sets it to about 90, although it still says it's 80 columns. I set up a line with 100 characters on it. Before I ran the above command, only the first 80 fit prior to wrapping. After running the command, it showed 90 characters. Yet eval-buffer for (frame-width) says it's 80. I know emacs 21.3 is no longer supported, but another user reported that he saw the same effect when running 22.3. Recent input: C-SPC C-n C-n M-x=20 e v a l SPC r e SPC M-x r e p=20 o r t SPC SPC SPC Recent messages: (C:\emacs\bin\emacs.exe -q --no-site-file c:\Emacs\site-lisp\MF-Init.el) For information about the GNU Project and its goals, type C-h C-p. Mark set Loading emacsbug...done From unknown Tue Aug 19 14:23:25 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3478: Error in set-default-font Reply-To: Jason Rumney , 3478@debbugs.gnu.org Resent-From: Jason Rumney Original-Sender: Jason Rumney Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Jun 2009 14:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3478 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124429756315320 (code B ref -1); Sat, 06 Jun 2009 14:20:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Jun 2009 14:12:43 +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=-4.4 required=4.0 tests=AWL,HAS_BUG_NUMBER, VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n56ECbwf015310 for ; Sat, 6 Jun 2009 07:12:39 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCwdR-0003gj-AC for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2009 10:12:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCwdM-0003dj-GH for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2009 10:12:36 -0400 Received: from [199.232.76.173] (port=53656 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCwdM-0003df-6y for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2009 10:12:32 -0400 Received: from wf-out-1314.google.com ([209.85.200.172]:35412) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCwdK-000433-OH for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2009 10:12:31 -0400 Received: by wf-out-1314.google.com with SMTP id 23so725804wfg.24 for ; Sat, 06 Jun 2009 07:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=sEERTnpwXwQzg9ebu7K0i6T38LpFBO+2q9f2X8MfMJ0=; b=ocxioiCrE3SoVFW99o7q7mslZUhTvAn/tw9A7vX9rr0Bu5D1gZ2fsqNwfMYvfsOox8 ahSzi0GC5qQBdXASYooxRPodt2lLJhJZ+mHRTIT4aAuepxXk77Dn7NG86GyWMkAMhA/i aYuDO3e6Lx/XWFl+WN1z4D7ZEfzfbc73odx5k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=k03GRGl6Gl3uvLges8pq85N4x0dRIbc7tGBmyWJUdQL7dCAVkS0+i3vkkiLbPiW8u3 PeTDmVC2UohaIGT0l24RUbORuZ4aALqrEqwI5uelOVjrPf6NLx2iuzd1eSkNiEW0dbFR 7bhR7J/v849UBC1M1RbS4PaGwKVhH6RKx9xqQ= Received: by 10.143.3.16 with SMTP id f16mr1557484wfi.60.1244297549120; Sat, 06 Jun 2009 07:12:29 -0700 (PDT) Received: from ?192.168.249.26? ([124.13.2.139]) by mx.google.com with ESMTPS id 31sm3381317wff.24.2009.06.06.07.12.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Jun 2009 07:12:28 -0700 (PDT) Sender: Jason Rumney Message-ID: <4A2A792A.3050403@gnu.org> Date: Sat, 06 Jun 2009 22:11:54 +0800 From: Jason Rumney User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Mickey Ferguson , 3478@debbugs.gnu.org CC: bug-gnu-emacs@gnu.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-CrossAssassin-Score: 2 reassign 3478 emacs,w32 found 3478 22.3 notfound 3478 23.0.94 tags 3478 wontfix thanks Mickey Ferguson wrote: > When I execute the following two lines of code: > > (set-default-font > "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin") > > emacs changes the size of the window (frame) so that it no longer > displays 80 columns. This seems to be caused by the fact that there is no font that exactly matches that name (at least on my install of Windows XP). There are two non-bold versions of Terminal font at 12 pixels height, and a bold version 8 pixels high. Emacs 21 and 22 choose a non-bold 12 point version, but because of the wildcard in the width field, they end up confused about the width - the frame width seems to be set based on the ...-c-70-ms-oemlatin version, while the font used for display is the ...-c-50-ms-oemlatin version. Emacs 22 confuses things further by using a synthesized bold version of the font, which messes up display further. Due to a complete rewrite of the font handling code, Emacs 23 chooses the 8 pixel high bold font, and displays consistently. I don't think there is anything further needed to fix this, but thanks for reporting it. From rgm@gnu.org Wed Jun 17 00:29:42 2009 Received: (at control) by emacsbugs.donarmstrong.com; 17 Jun 2009 07:29:42 +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=-4.0 required=4.0 tests=AWL,VALID_BTS_CONTROL autolearn=ham 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.14.3/8.14.3/Debian-5) with ESMTP id n5H7TcQa018381 for ; Wed, 17 Jun 2009 00:29:39 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MGpaT-00005k-JR; Wed, 17 Jun 2009 03:29:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19000.39777.414084.568239@fencepost.gnu.org> Date: Wed, 17 Jun 2009 03:29:37 -0400 From: Glenn Morris To: control Subject: control message Sender: Glenn Morris tags 3196 moreinfo unreproducible reassign 3221 emacs,ns reassign 3256 emacs,ns tags 3264 moreinfo reassign 3269 emacs,cc-mode close 3269 reassign 3281 emacs,w32 tags 3291 moreinfo severity 3310 minor close 3319 severity 3327 minor tags 3330 moreinfo unreproducible reassign 3331 emacs,ns close 3331 reassign 3351 emacs,ns severity 3350 minor reassign 3397 emacs,ns severity 3425 wishlist close 3448 reassign 3459 emacs,ns severity 3462 wishlist tags 3467 wontfix reassign 3500 emacs,ns merge 3234 3483 severity 3540 wishlist reassign 3452 emacs,w32 severity 3577 minor reassign 3581 emacs,ns reassign 3583 emacs,ns merge 3588 3593 reassign 3588 emacs,ns reassign 3589 emacs,ns reassign 3478 emacs22,w32 close 3146 From jasonrumney@gmail.com Sat Aug 1 02:25:45 2009 Received: (at control) by emacsbugs.donarmstrong.com; 1 Aug 2009 09:25:45 +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.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-pz0-f191.google.com (mail-pz0-f191.google.com [209.85.222.191]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n719Pf7K030942 for ; Sat, 1 Aug 2009 02:25:42 -0700 Received: by pzk29 with SMTP id 29so1741860pzk.19 for ; Sat, 01 Aug 2009 02:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:message-id :date:from:user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=VsjY07ObWWJlSyS9Lv84CUFQe12fpMQ/lX7nORW/dG8=; b=SY+agdsJUuf/BRdmAsaH7MNlE1qepXDC5AAuNVbqbfvkgaw/59nYFOZXC9DS+vrBgG CPJM2+DX3RxgiH0bAAOIMc8HdHUjBKIDfs+/K616e+dWD53ogFSKqq9sP4YEzxwafzgt B4+Wc/vk7D6SQoX0jaI3lW61CeZzwVb0oSFJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=hGul2XA0pAw1EKs2Pu4h78aCFMri5ZJhpead8fjWPpEdT6arKpaxJY2tPcJMYWa4Oz YfhAv+mo4BRS3aTaWs7wFTpHLu04CBb1uKpbQHlr7QHit49CokZZQdH2snnzMyrEgbod sUcCOcqBqgTpK8OiNu4ZSchBb66Xtkez0l2Cw= Received: by 10.114.201.10 with SMTP id y10mr2989978waf.95.1249118735779; Sat, 01 Aug 2009 02:25:35 -0700 (PDT) Received: from wanchan.jasonrumney.net ([118.101.136.103]) by mx.google.com with ESMTPS id l38sm6886911waf.18.2009.08.01.02.25.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 Aug 2009 02:25:35 -0700 (PDT) Sender: Jason Rumney Received: from wanchan.jasonrumney.net (localhost [127.0.0.1]) by wanchan.jasonrumney.net (Postfix) with ESMTP id C5DB3787 for ; Sat, 1 Aug 2009 17:25:32 +0800 (MYT) Message-ID: <4A740A0C.4000201@gnu.org> Date: Sat, 01 Aug 2009 17:25:32 +0800 From: Jason Rumney User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: Close 22.x bugs already fixed in 23.1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit close 201 close 1005 close 2950 close 3478