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#52493: 29.0.50; Setting Inconsolata up in init.el makes default face rendered wrong Date: Fri, 30 Dec 2022 10:51:37 +0100 Message-ID: References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <357a553a-7a5d-9bae-f725-14366b07f52f@yandex.ru> <6889e78d-c296-1d5a-a0d3-66ad2b7a6b09@gmx.at> <92bbfa58-b920-04b9-078b-474fd917daf6@yandex.ru> <0c2d9115-8cec-0870-2ac3-38b8c17a0575@gmx.at> <83abf08e-44d9-8a05-f746-5f6a8469ab02@yandex.ru> <503acc7f-8b06-3ce2-71b0-9f97e8de1966@gmx.at> <66cb788c-6b49-c408-0168-0492e7f8d7ad@gmx.at> <266ad500-da74-13a5-2434-81bd3d5b3554@yandex.ru> <66499633-3283-3cb2-2322-77a357a3c1b7@gmx.at> <1c8f744b-2c71-d6b3-39be-86185ea3650b@yandex.ru> <9bc9f6fe-4fe6-1f75-42db-3a9c3e84d851@gmx.at> 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="12797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, 52493@debbugs.gnu.org To: Dmitry Gutov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 30 10:52:15 2022 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 1pBC3j-00038T-7r for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Dec 2022 10:52:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBC3Z-0002lx-6R; Fri, 30 Dec 2022 04:52:05 -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 1pBC3X-0002lg-4m for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2022 04:52:03 -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 1pBC3W-00047i-9D for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2022 04:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBC3V-00024o-PS for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2022 04:52: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, 30 Dec 2022 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52493 X-GNU-PR-Package: emacs Original-Received: via spool by 52493-submit@debbugs.gnu.org id=B52493.16723939137969 (code B ref 52493); Fri, 30 Dec 2022 09:52:01 +0000 Original-Received: (at 52493) by debbugs.gnu.org; 30 Dec 2022 09:51:53 +0000 Original-Received: from localhost ([127.0.0.1]:33568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBC3N-00024S-9h for submit@debbugs.gnu.org; Fri, 30 Dec 2022 04:51:53 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:55719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBC3L-00024F-VP for 52493@debbugs.gnu.org; Fri, 30 Dec 2022 04:51:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1672393905; bh=+mC8pBQHlKxmP+GkBlZTrDhHNhN1hYKAsWLwOWf5E4U=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=o0hBfbhlGBUy3vQaoDNO5muasLmvoLSXq6dnqKTcy8C1RJZdeAIcOTaI14g1zJ4t1 EdHQ17f+xDDF3PT2rEQMpa9idKgniyM8zsi1bIDbd2IBITNirOEOdRvYrdEliOa52W 6WjwKc6SZFh2CcggXfHVp9vPNs36WGwQR9yQahXolg7y7sqv7TxKReDJoOGnGwL4Nz 0F8sp1g/Qer21eYQvHoWDzA4nG2kRCMO++PqvtCctXAI82Os2Rjw/OF5WpJDxn6+dZ 1aMVgX81LEEFGNFCwDFwXUdtFGHWiN3jz4LnMQUbQDCmOyVLdgrX9TiBjFB2Dvt7hn b62o1KDd/oBag== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.1.100] ([46.125.249.84]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M89Gt-1pFIuo0Ma3-005F8X; Fri, 30 Dec 2022 10:51:45 +0100 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:2zyXXlqFKTNU/WoXqp+HlyqEEEyNq8TFnoqMWcgKeVXmYey/1I7 p0S3w2G2QCj6cxTeeniXHfaVcQOvPEBH8voVra6Ss+quspRXPowBjawxXFokNrniiqU/0MW ywKlqqaFB3IP9LdaPSwAmjj/Ht5l6YG05iRvbtBhuaLayR3ZnqTpjdFu16SkHN0CrK8TKOb R8YyL0xreC+e4O22Dvl+g== UI-OutboundReport: notjunk:1;M01:P0:Up6EhKIHLTU=;drngi1xHAnj9EgJ+WOn4TkavwNJ cPPddu89qYRStq75k6344F7uWy+wD5JOVVBBtntS8ioVnesia7ey4/e4aPc70UfTEsNsqf0Q+ QYkAD7o6aB2F7pTs99iJk4LBtw0WTJfbpg8iF8ytK4RMdKJgZpEpepP2kf4OvC4oTYru1BhQs W9zWexFWi5R2ZqSr1Z0fjw43tnCVPBuj8GlfRbIAqTzh4uLlw74iaX+JYEpfwJQB9iarzrJgs kSn2wVIISklC9J/WZz7viPvH4WvBOVlj/c9yKwTiUTeDF1THqBIBr5Jz+UomNoxy2YgkKGVTW ls+9STKnz4NXgCQHCIhAOWOEG9mB6TsOnQ9yRBQv98/WG/Am4081SNzK1zYsSvGoFCCYxP1sd WV736rsIt8BDXkSefJXb6sPaPmGWkUyGSEfKZWQ6rkdR/P8f2qNJcxU815/MXhGTOpoZMyf2G 7HygBS2u1BiXBCjkpe+srTVOl1iVrEG19PV8EAHjHcAtGvqow9gIS7IShP/7uVpuMpZs2NKFj 9XtnKfayUAX0TPLLHOD7+1aufgJ0QVlTBwHtsQUvn6TuW/Ev1LMhPw+w1cUWWJFxbJm5WuZ78 3Gs9VGmBW1YcjxdyV4wcPNgJzj9IA7DGaIt0xAG6xk3Xu31yOEIGJn9SoLONB8Djm3FVPwDNf EqYvIOpgtpmz6G3ELYDsq5MD0kctACY0ktiA6bMypDO/C5JSx/hbDcaucHyqFnqId3yfvOA+s 8uVY8TF2ePHNi06CRIgJjcm/gykpnjUvYSLZeqeQ03Ti3ctmP81gj52qXrWovBT20QlKaQ3B 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:252104 Archived-At: > Oh, BTW, I have menu-bar, scroll-bar and tool-bar all disabled. The fringes should be on, though. Then try setting the fringes to one 'frame-char-width' each or set them to zero. >> No idea. You could try to step through normal_char_ascent_descent (best >> when called from get_font_ascent_descent) for each of these fonts and >> find out whether and how they differ. > > I'm reasonably certain it's the same font. [...] > If you think it will help, I can still try stepping through the functions you mentioned, but no earlier than tomorrow. Please do that. 'describe-face' is one thing. What the display engine thinks of a font might be another. >> So we at least have the improvement that the frame does not change size >> for repeated, apparently idempotent, invocations. Right? > > For some frame widths it does not. For others (for ranges of widths) -- it does. I see. > Resizing with the mouse works without any apparent glitches. The > corner of the frame follows the mouse almost exactly, within the > margin of a char's height/width (when resizing is not pixelwise). It should do that in terms of whatever we ask for in the width and height increments - after all, those mouse operations are under full control of the WM. Whatever size the WM gives us, we comply. Take these two assignments in xg_wm_set_size_hint: size_hints.width_inc /= scale; size_hints.height_inc /= scale; Instead of the "/= scale"s put some assignments with arbitrary constants there, say size_hints.width_inc = 51; size_hints.height_inc = 7; You should see that mouse dragging will resize the frame by exactly what you've put there. BTW: Try with these two lines commented out and tell me whether mouse dragging becomes _perceptibly_ worse. Removing them could be a substantial relieve in the future. The problems start after Emacs takes the values it has been told by the WM and tries to retrofit them into its own lines/columns framework. When you next ask Emacs programmatically to resize the frame in terms of the values it stored there, all those rounding and scaling errors that piled up fire back. Resizing frames is a continuous dialogue between Emacs and the WM. If one of them refuses to listen to the other, users will suffer. Thanks, martin