From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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: Sat, 28 Jan 2023 02:22:51 +0200 Message-ID: <0144e9a3-57ab-6549-d382-744b141066ec@yandex.ru> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <75e1b3d4-a79f-d36f-4898-fdf1ed05492c@gmx.at> <33214f9c-f89f-b96f-e1db-12aad7b03261@yandex.ru> <36f67e04-8450-5273-2136-fb9832ed703f@gmx.at> <67b92c69-f456-0d31-c7b2-83600cc12f61@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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26943"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 60585@debbugs.gnu.org, rpluim@gmail.com To: martin rudalics , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 28 01:24:14 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 1pLZ0w-0006qI-76 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Jan 2023 01:24:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLZ0l-0008Mh-OF; Fri, 27 Jan 2023 19:24:03 -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 1pLZ0k-0008MQ-Be for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 19:24: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 1pLZ0k-0006Kj-2c for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 19:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLZ0j-0004H0-LL for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 19:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Jan 2023 00:24: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.167486538316343 (code B ref 60585); Sat, 28 Jan 2023 00:24:01 +0000 Original-Received: (at 60585) by debbugs.gnu.org; 28 Jan 2023 00:23:03 +0000 Original-Received: from localhost ([127.0.0.1]:38992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLYzm-0004FU-Lg for submit@debbugs.gnu.org; Fri, 27 Jan 2023 19:23:03 -0500 Original-Received: from mail-ej1-f41.google.com ([209.85.218.41]:45910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLYzj-0004Ek-Kd for 60585@debbugs.gnu.org; Fri, 27 Jan 2023 19:23:01 -0500 Original-Received: by mail-ej1-f41.google.com with SMTP id vw16so17817045ejc.12 for <60585@debbugs.gnu.org>; Fri, 27 Jan 2023 16:22:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=7kT4JtximPhjmgUPaVcTgMQaA/NzLSh/lKMsJyigSaM=; b=lKQ2yV84VUvP1syeVcXBnB5iDurkQBnu5IjdAw/iNlcpu+z/Rw+O0sXrzf0aQCPMPD H4xHO5E79YjeAtEs+5QPU6r040duK2aSsCJVZRfODGGdbpPweJpNn8V7rx5Zl52V1GGP jbnhrJCKM6IRGaJd+zh97oIUE2nYHQB7l+ZcBGMh8pGdX90PSlrsA3G1IyCrigc+uNHp pdIvYlDM8GY0w+2Rh/qRigmiE3bmtr9J7VbA1gcaASbZ1yVBaJx3heEie2p7yWM2FkNT CCyebAyabkyf9Ai0NGjcvGh14LAejS/7CjMtCs2vMchJFXGsGZwmiPRQ7GsvX+YEamF/ FQtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7kT4JtximPhjmgUPaVcTgMQaA/NzLSh/lKMsJyigSaM=; b=HsoDzRpW3+SqyQkfH0pfzVmCrwQFa+a6NR6W+KHfYVbiMgR64QuTB3jTchayyNtx0d KLrq9BEqIxF5o8KAx3eNmsDc8i7QymeJ6DuoPdCmHY2Fa2w7X3dmY10IVhHXKxVfXC+v faYwE+tue1J1Yz4W3+rOJMuVDX/EGPG8m4ogXDYbw8mHnRLLS8qES81JM4fYZum4yHDO KAfnyfWQRouDTFPtb8FwvzLWCIP+KDIlRQc/2L3bozeIeoKo/G+3Ditot5OxsuEs0OpG aQ6wuBHjr5Mb2YBCXLk5/Y7wLF7BSwhKk5UqTN/BQ4AGzUbxpAgKGhWne6E6h4wr/TKe DuTw== X-Gm-Message-State: AO0yUKXlX30bytd+oakBO9Ds22ZufgEoo+b8OQXWhUfU25ogpFCsUlE+ SyH3C7t9hngAfb4wK/jnkgM= X-Google-Smtp-Source: AK7set+nwPlCrAU8CtE1wp/FxST66j3UWWh9WKMpkSWRwvChTKUYwsCQQVfYlnf8b7iN5b4j5+patw== X-Received: by 2002:a17:907:a0d3:b0:878:54f4:ffe9 with SMTP id hw19-20020a170907a0d300b0087854f4ffe9mr8230446ejc.0.1674865373548; Fri, 27 Jan 2023 16:22:53 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id bh13-20020a170906a0cd00b0084d14646fd9sm3010582ejb.165.2023.01.27.16.22.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Jan 2023 16:22:52 -0800 (PST) Content-Language: en-US In-Reply-To: <3ba27f8c-779a-6f29-45a1-2b7e5a4dcb14@gmx.at> 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:254282 Archived-At: On 27/01/2023 11:35, martin rudalics wrote: > This shows how scaling strongly affects whatever GNOME displays here and > what Emacs uses internally.  It might be illustrative to put two equally > sized frames above each other - one from a GTK and one from a Lucid > build - and look at what size hints GNOME displays for each of them. Let me know if you really need that -- I'd have to compile Emacs in two separate directories. > For the rest, the transcript nowhere shows that the GNOME hints jump by > two or more after 'set-face-attribute'.  Can you spot such behavior? The jumps in the log look smooth, but one set-face-attribute evaluation creates several log entries. After I resize the frame to 118x35 and evaluate the s-f-a form, all of this is printed in the log: x_new_font old char size 17x37 new char size 17x37 text chars 112x35 old text pixels 1904x1296 new text pixels 1904x1295 xg_wm_set_size_hint scale 2 char width 17 toolbar 0 vscroll 32 fringes 16 borders 0 text width 952 base width 32 width inc 8 char height 37 menubar 50 toolbar 82 hscroll 0 borders 0 text height 647 base height 101 height inc 18 xg_frame_set_char_size old native pixels 1952x1296 new native pixels 1952x1295 outer pixels 976x713 outer rest 0x0 base_size 32x101 size increments 8x18 WM hint 118x34 xg_frame_resized old native pixels 1952x1296 new native pixels 1952x1294 adjust_frame_size old native pixels 1952x1296 new native pixels 1952x1294 old text pixels 1904x1296 new text pixels 1904x1294 old text chars 112x35 new text chars 112x34 base_size 32x101 size increments 8x18 WM hint 118x34 x_new_font old char size 17x37 new char size 17x37 text chars 112x34 old text pixels 1904x1294 new text pixels 1904x1258 xg_frame_set_char_size old native pixels 1952x1294 new native pixels 1952x1258 outer pixels 976x695 outer rest 0x0 base_size 32x101 size increments 8x18 WM hint 118x33 xg_frame_resized old native pixels 1952x1294 new native pixels 1952x1258 adjust_frame_size old native pixels 1952x1294 new native pixels 1952x1258 old text pixels 1904x1294 new text pixels 1904x1258 old text chars 112x34 new text chars 112x34 base_size 32x101 size increments 8x18 WM hint 118x33 ...and the frame is 118x33 at the end, naturally. Then I can resize the frame again, this is printed: xg_frame_resized old native pixels 1952x1258 new native pixels 1952x1294 adjust_frame_size old native pixels 1952x1258 new native pixels 1952x1294 old text pixels 1904x1258 new text pixels 1904x1294 old text chars 112x34 new text chars 112x34 base_size 32x101 size increments 8x18 WM hint 118x34 xg_frame_resized old native pixels 1952x1294 new native pixels 1952x1330 adjust_frame_size old native pixels 1952x1294 new native pixels 1952x1330 old text pixels 1904x1294 new text pixels 1904x1330 old text chars 112x34 new text chars 112x35 base_size 32x101 size increments 8x18 WM hint 118x35 Then I call s-a-f again, and a lot of stuff (slightly different: it seems the xg_wm_set_size_hint calls is missing) is printed again: x_new_font old char size 17x37 new char size 17x37 text chars 112x35 old text pixels 1904x1330 new text pixels 1904x1295 xg_frame_set_char_size old native pixels 1952x1330 new native pixels 1952x1295 outer pixels 976x713 outer rest 0x0 base_size 32x101 size increments 8x18 WM hint 118x34 xg_frame_resized old native pixels 1952x1330 new native pixels 1952x1294 adjust_frame_size old native pixels 1952x1330 new native pixels 1952x1294 old text pixels 1904x1330 new text pixels 1904x1294 old text chars 112x35 new text chars 112x34 base_size 32x101 size increments 8x18 WM hint 118x34 x_new_font old char size 17x37 new char size 17x37 text chars 112x34 old text pixels 1904x1294 new text pixels 1904x1258 xg_frame_set_char_size old native pixels 1952x1294 new native pixels 1952x1258 outer pixels 976x695 outer rest 0x0 base_size 32x101 size increments 8x18 WM hint 118x33 xg_frame_resized old native pixels 1952x1294 new native pixels 1952x1258 adjust_frame_size old native pixels 1952x1294 new native pixels 1952x1258 old text pixels 1904x1294 new text pixels 1904x1258 old text chars 112x34 new text chars 112x34 base_size 32x101 size increments 8x18 WM hint 118x33