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#52493: 29.0.50; Setting Inconsolata up in init.el makes default face rendered wrong Date: Wed, 28 Dec 2022 14:31:46 +0200 Message-ID: <1c8f744b-2c71-d6b3-39be-86185ea3650b@yandex.ru> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <8faaa5db-7099-b4d5-fae2-97b1eb28b90c@gmx.at> <2f876c63-d9f5-4dbe-6d82-5d46eb73118d@gmx.at> <8ca8c5c6-c8a1-bf48-a9e6-1e16935de2d6@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> 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="4142"; 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: rpluim@gmail.com, 52493@debbugs.gnu.org To: martin rudalics , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 28 13:32: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 1pAVbS-0000uZ-BS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Dec 2022 13:32:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAVbJ-0002qj-3q; Wed, 28 Dec 2022 07:32: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 1pAVbG-0002qP-Rx for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 07:32: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 1pAVbG-00036R-Ee for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 07:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAVbG-0000k8-3K for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 07:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Dec 2022 12:32:02 +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.16722307182846 (code B ref 52493); Wed, 28 Dec 2022 12:32:02 +0000 Original-Received: (at 52493) by debbugs.gnu.org; 28 Dec 2022 12:31:58 +0000 Original-Received: from localhost ([127.0.0.1]:57232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAVbB-0000jp-L3 for submit@debbugs.gnu.org; Wed, 28 Dec 2022 07:31:58 -0500 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:38820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAVb9-0000jb-Jz for 52493@debbugs.gnu.org; Wed, 28 Dec 2022 07:31:56 -0500 Original-Received: by mail-wr1-f44.google.com with SMTP id n3so14079576wrc.5 for <52493@debbugs.gnu.org>; Wed, 28 Dec 2022 04:31:55 -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=ClVbv212scS6bKEQSm7S1dsoKx4eI3A1YbXLgj6JPKI=; b=mp7CmgXaUATcPJBRZ024aZel+TVqli8fLMSnM58zrDC7FnzHtbX+yyJouTQaOxejB3 /r0qy1BROPgH913mc5pCQMHo27sYH/BXf+xI53hWQ7eG9hU42vl6ovUHisOSNJ8bD//Z k1hOd5hSbGYB2RVYvxJzA49pajOpclFcL6xzcpJk17d3bIT7lddaRIOVd7nyL6WW53nT sYuhpI5xVo9vx1C/1CNuAfmzbZW+a2QqQs+BFs+zmY2BE7/SCTWF/xh5xdrTTf3o80TB o86pFspjGPGSycPJ5tvQ2qXdpeqsNg41TbCMjnoBq8QrFHC1QKwdprEG8YSdpkLoTkRn I6Ug== 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=ClVbv212scS6bKEQSm7S1dsoKx4eI3A1YbXLgj6JPKI=; b=0LatVvNQdRkGFgmLueXeJ5wRS524iLvsznYJSPzRe7sq5IDD8vYBT/pUL6gkmUV4vM wNNKaJg2a5+h6vshlcOrNmb8QFVbbat35f6zqAxaanhlLOnL4vAoPPytWN+HKBbSlLlS kvYOFjsn7z4JTA+Ecc1WUQcJy4aywF0+6OxD4xFYJjsXgYiDKX7NU9RfiZl2vgu+igCh UCYNFCdSmylc9Yu0SRqpPT/7kIgBrNccTW7hQ+AQc3wgiGLZYGwdiVQNXXAHSyzKx5Sg TZBmpY1yDF401ocHjLyoGplInvrgxXMw24in5mxEsWO/77Drt4vuZu5RY3nI8odgVd6/ BTnw== X-Gm-Message-State: AFqh2kpp3qL1InEI7JPTUkGu4r/LBhnqWd9m4xVBVMMyz2XP3q4vxXrr 9CJYOTT1WeerFH3KFWFZ9Uc= X-Google-Smtp-Source: AMrXdXs0Misrz78YqSZYNRJ9pE1VdDrMbVmbfbFBBHX+QjlNSgwrtYnAcRhCx/xJM7b+u5zuL9AfWg== X-Received: by 2002:adf:9788:0:b0:242:4a49:f7d7 with SMTP id s8-20020adf9788000000b002424a49f7d7mr14019281wrb.2.1672230708783; Wed, 28 Dec 2022 04:31:48 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id r15-20020a0560001b8f00b002709e616fa2sm15254645wru.64.2022.12.28.04.31.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Dec 2022 04:31:48 -0800 (PST) Content-Language: en-US In-Reply-To: <66499633-3283-3cb2-2322-77a357a3c1b7@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:251982 Archived-At: Hi Martin! On 28/12/2022 12:08, martin rudalics wrote: > The base_height value (84 pixels) we calculate here is the sum of the > line_height value, the menubar_height value and the toolbar_height > values divided by the scale factor: > > (/ (+ 37 50 82) 2) > > height_inc (18) is the line height divided by the scale factor (/ 37 2). > > These size hints have mutter expect us to resize our frame to something > like > > (+ base_height (* height_inc N)) > > for some positive integer N.  Now we want to resize the frame to > line_height times lines, that is (* 37 35) yielding 1295 pixels. > > But (% (/ 1295 2) 18) is not zero and so mutter declines our request > giving us 1260 pixels text height instead.  Apparently, mutter starts > with (/ 1295 2) that is 647, 630 is the next multiple of 18 it finds, so > (* 630 2) is the value it concedes us. > > So the height we should ask for with scaling is 1296 instead of 1295. > > Please try the attached patch - I can't test it here because I don't > scale.  If it doesn't work, please post the contents of *foo* as usual. It certainly does work. One of the changes I saw right away is the width of the frame right after startup with my config increased from 84 to 90 columns. Not sure if it's good or bad, so let's go back to the behavior with '-Q'. The height stopped shrinking. The width started growing. :-D I don't know if *foo* is helpful here yet, but here you go: adjust_frame_size .. old pixels/lines .. 25 .. 25 .. new pixels/lines .. 25 .. 24 adjust_frame_size .. old pixels/lines .. 25 .. 25 .. new pixels/lines .. 900 .. 25 adjust_frame_size .. old pixels/lines .. 900 .. 25 .. new pixels/lines .. 1296 .. 36 xg_frame_set_char_size .. old .. 1296 .. arg .. 1296 .. new .. 1296 outer .. 698 .. gheight .. 200 xg_frame_set_char_size .. old .. 1296 .. arg .. 1296 .. new .. 1296 outer .. 673 .. gheight .. 200 xg_frame_resized .. old .. 1296 .. req .. 1296 .. con/text .. 1346 .. 1346 xg_wm_set_size_hint .. line_height & scale .. 36 .. 2 .. base_height .. 43 .. height_inc .. 18 menubar_height .. 50 .. toolbar_height .. 0 xg_frame_resized .. old .. 1296 .. req .. 1346 .. con/text .. 1296 .. 1296 xg_wm_set_size_hint .. line_height & scale .. 36 .. 2 .. base_height .. 84 .. height_inc .. 18 menubar_height .. 50 .. toolbar_height .. 82 xg_frame_set_char_size .. old .. 1296 .. arg .. 1296 .. new .. -1 outer .. 714 .. gheight .. 673 x_new_font .. line_height .. 45 .. lines .. 36 .. new_text_height .. 1620 xg_wm_set_size_hint .. line_height & scale .. 45 .. 2 .. base_height .. 88 .. height_inc .. 22 menubar_height .. 50 .. toolbar_height .. 82 xg_frame_set_char_size .. old .. 1296 .. arg .. 1656 .. new .. -1 outer .. 894 .. gheight .. 714 xg_frame_resized .. old .. 1296 .. req .. -1 .. con/text .. 1628 .. 1628 adjust_frame_size .. old pixels/lines .. 1296 .. 36 .. new pixels/lines .. 1628 .. 36 x_new_font .. line_height .. 37 .. lines .. 36 .. new_text_height .. 1332 xg_wm_set_size_hint .. line_height & scale .. 37 .. 2 .. base_height .. 84 .. height_inc .. 18 menubar_height .. 50 .. toolbar_height .. 82 xg_frame_set_char_size .. old .. 1628 .. arg .. 1368 .. new .. -1 outer .. 750 .. gheight .. 880 xg_frame_resized .. old .. 1628 .. req .. -1 .. con/text .. 1368 .. 1368 adjust_frame_size .. old pixels/lines .. 1628 .. 36 .. new pixels/lines .. 1368 .. 36 x_new_font .. line_height .. 37 .. lines .. 36 .. new_text_height .. 1332 xg_frame_set_char_size .. old .. 1368 .. arg .. 1368 .. new .. -1 outer .. 750 .. gheight .. 750 xg_frame_resized .. old .. 1368 .. req .. -1 .. con/text .. 1368 .. 1368 x_new_font .. line_height .. 37 .. lines .. 36 .. new_text_height .. 1332 xg_frame_set_char_size .. old .. 1368 .. arg .. 1368 .. new .. -1 outer .. 750 .. gheight .. 750 xg_frame_resized .. old .. 1368 .. req .. -1 .. con/text .. 1368 .. 1368 x_new_font .. line_height .. 37 .. lines .. 36 .. new_text_height .. 1332 xg_frame_set_char_size .. old .. 1368 .. arg .. 1368 .. new .. -1 outer .. 750 .. gheight .. 750 xg_frame_resized .. old .. 1368 .. req .. -1 .. con/text .. 1368 .. 1368 x_new_font .. line_height .. 37 .. lines .. 36 .. new_text_height .. 1332 xg_frame_set_char_size .. old .. 1368 .. arg .. 1368 .. new .. -1 outer .. 750 .. gheight .. 750 xg_frame_resized .. old .. 1368 .. req .. -1 .. con/text .. 1368 .. 1368