From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#60585: 30.0.50; global-text-scale-adjust shrinks window (was not before), was: Re: bug#52493: 29.0.50; Setting Inconsolata up in init.el makes default face rendered wrong Date: Fri, 24 Feb 2023 18:54:42 +0100 Message-ID: <5ffe5382-7299-84d2-4eb0-e7d5135941ec@gmx.at> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <936558fd-5c6e-f575-7211-3d6a14f8febd@yandex.ru> <46994f90-a8ab-7797-73f6-51af01759fb1@gmx.at> <661a804a-ad05-81f8-1aa0-b83811a0576c@yandex.ru> <9c02c0b0-9b96-7d46-37ae-a258a9496891@gmx.at> <3ba27f8c-779a-6f29-45a1-2b7e5a4dcb14@gmx.at> <0144e9a3-57ab-6549-d382-744b141066ec@yandex.ru> <90b5e151-39d1-0248-7be5-8084d8883e5f@gmx.at> <309dcf34-b553-58c2-34a5-270028b05347@yandex.ru> <8913f7e5-5509-3a8e-7413-991b404c3e4e@gmx.at> <4826afb4-e4a7-3845-4cc4-c696123b5e8d@yandex.ru> <90779967-1542-9c5f-c064-f4fca8eabcc2@yandex.ru> <212de935-52bc-9516-9a36-40e5ccd8c824@gmx.at> <93204d3f-4f97-53ae-ebc0-1f5739efe526@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1159"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60585@debbugs.gnu.org, rpluim@gmail.com To: Dmitry Gutov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 24 18:55:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVcI2-00009O-38 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Feb 2023 18:55:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVcHk-0000sX-Bn; Fri, 24 Feb 2023 12:55:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVcHe-0000qX-Jx for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVcHd-00076g-Uo for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:55:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVcHd-0005Mx-PJ for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2023 17:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60585 X-GNU-PR-Package: emacs Original-Received: via spool by 60585-submit@debbugs.gnu.org id=B60585.167726129320621 (code B ref 60585); Fri, 24 Feb 2023 17:55:01 +0000 Original-Received: (at 60585) by debbugs.gnu.org; 24 Feb 2023 17:54:53 +0000 Original-Received: from localhost ([127.0.0.1]:38210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVcHU-0005MX-Ny for submit@debbugs.gnu.org; Fri, 24 Feb 2023 12:54:53 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:50541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVcHT-0005MJ-50 for 60585@debbugs.gnu.org; Fri, 24 Feb 2023 12:54:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1677261285; i=rudalics@gmx.at; bh=LYMFO5EiDyZk7fUncGi3T/bznL+88FbzhN8z6CcjAY0=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=dpP9bB16TD1+qyhu6BGqIwls1nfY7jyFoDLuMpOjnkwTvDceuQ9J4cQ2nXXuxi8zL lm24P0lBJ1oaeUkgeVTBEwdXCH36Atlshe3dp4RbdqRw1/lfiM5XyFad/RIvTAC+Ap VAXvX/DSbTHiLq4L/I+xIVJsIPVKJN09L8ndiHWQBWqVO+/6PP1R99h533Z94NOm/b frE4MQdF01P7YqA+wlSlyLHAwaD6kc9AtQVXnCaRwlxIFQwem2MFVYAYVaVGrkb9aE dqXE+CvG9VAllKK0fJNeJqss0T8E2V4jPZU+ZAHuVpdHKdv+3hWtJ1q0Y4W3oYVKPR 4xpr4Nna5xwzg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.1.100] ([213.142.97.103]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGyxN-1pJBwd3YRv-00E1vo; Fri, 24 Feb 2023 18:54:44 +0100 Content-Language: en-US In-Reply-To: <93204d3f-4f97-53ae-ebc0-1f5739efe526@yandex.ru> X-Provags-ID: V03:K1:B8X6xz8+LUQGg/zmOOp+3K2Qzp39HmNa5Vq4R6YCi8qTGNNvEN4 vRaDNu39vF9MxXoOChj7+vIsTjsytap93rtf2ExjikBMNYXnsu2Ith2paOLj+suArPKpRVU D2biCk5IRsdWz6NSkewq/PFAwKpyBDrh1zwB5L1z3mtnN9Ub/MlPE1JKSQZ7iYq7MPAL2v+ y8tobykf25EWC/L43nU3w== UI-OutboundReport: notjunk:1;M01:P0:M3w+s4isUM8=;X1QDjq+tOlnTfGqwDTkElkGFpk6 GvpoYBppDF3QEt1bRSYsYjndmXK3k8biDT8p3RaIh70GZzj9tetN93Zvc43UX80igymuA/cvc LS9UUte6VBb8pidybpgGoxxBslp2uRYF4lOuG03+CAYO/CPx0Fk8G5MsYNfPvKjoPoed7jw6Q EdsG24UDAA97rIv0PKunJZ8wlIXa4y8+gA40Tb/UTVp2cHRIk1QCW782Tl5iGwNAkuEFBc6ns PpJH5+TfZtConKGaTkXtM41NA7iegbjWicuuQ+h9ktCVBfwg/A/4seqB4Fe9Ur6/5YfqygpJF WxTNzbqrQWCdQKG+13L78AAw7dNByyx4oY+w/ksdO/z7di4O+5FHICsGLT9T3V6moEnOblHC1 qCK4Fo1uPNTagSL8YC1umdbVU64P4X0qyd6jHieoHWajtjxpi4GAG5rhZRyyrbGDsF/JQdZfP SU8OiNlnkRg2UkXGbvUMbVzUHcJ/FB+PR/25igcj6a4Y8NsDptJnolSJZr80GB9qQLyDijey3 P4/R1/Rs5lODzQITbp6viwcfJvPg9moBqmDM65eFzmq3MmRciW0hmHAU7+kH0kzlUWMM3tV+V vVC/WRIeCYgbWG5t/sNsyS2ufVXshRIVrkkkhXSmTFYzRrY1MKrO99BcIFnUt044/mVJG9gQ4 FoHhT0Otg2Swc2p/Ut6nwzCsLWFV6swt8cUN3FYMhNBJ7FuUXAccoJRRzCVoNTk75mzKcfy0u chYHgLdfCA6waTulXOLdZc5WWl9Jm1iC1+PyNtekHR4v5Ao/w9FG208yySNdWu+QfhcCJTwi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256647 Archived-At: > And it does have a thumb when the buffer is taller than the > window. Sometimes the thumb gets bigger and sometimes smaller, > though. That's a little odd. Perhaps it works off the number of > visible characters rather than lines. Interesting. I've never seen such behavior. > InconsolataLGC: > > (set-face-attribute 'default nil :family "InconsolataLGC") > > (gdb) p font->average_width > $1 = 21 > (gdb) p font_ascent > $2 = 37 > (gdb) p font_descent > $3 = 8 > > (set-face-attribute 'default nil :height 110) > > (gdb) p font->average_width > $7 = 17 > (gdb) p font_ascent > $8 = 31 > (gdb) p font_descent > $9 = 6 > > Now the reverse: > > (set-face-attribute 'default nil :height 110) > > (gdb) p font->average_width > $10 = 15 > (gdb) p font_ascent > $11 = 25 > (gdb) p font_descent > $12 = 5 > > (set-face-attribute 'default nil :family "InconsolataLGC") > > (gdb) p font->average_width > $13 = 17 > (gdb) p font_ascent > $14 = 31 > (gdb) p font_descent > $15 = 6 > > (I did restart Emacs between tries, just not GDB.) > > Inconsolata LGC: > > All exactly the same. Omitted to save space. There's one thing that we haven't checked yet and I don't know how to do that. When you evaluate :height first you get a line height of 30 which scaling should reduce to 15 without loss. When you evaluate :family first you scale twice with a loss. I have no idea whether this has any impact. You can try whether either of the following (progn (set-face-attribute 'default nil :family "Inconsolata LGC") (set-face-attribute 'default nil :height 110)) (progn (set-face-attribute 'default nil :height 110) (set-face-attribute 'default nil :family "Inconsolata LGC")) causes a different shrinking behavior but I doubt that it will reveal anything useful. So I ran out of ideas ... martin