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: Sun, 25 Dec 2022 11:21:36 +0100 Message-ID: <503acc7f-8b06-3ce2-71b0-9f97e8de1966@gmx.at> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <83czlwhe0v.fsf@gnu.org> <835yrohcb1.fsf@gnu.org> <834k78h989.fsf@gnu.org> <83zgp0ftse.fsf@gnu.org> <83wnk4fpyw.fsf@gnu.org> <9df1ebce-83ff-068c-20ed-b849697a06b2@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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------OkyYfIvjGgfxcyo6ZU9jrUnO" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7692"; 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 Sun Dec 25 11:22:35 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 1p9O9K-0001pg-FC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Dec 2022 11:22:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9O8s-0003OB-CA; Sun, 25 Dec 2022 05:22:06 -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 1p9O8q-0003ML-C9 for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2022 05:22:04 -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 1p9O8o-0005Wy-7m for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2022 05:22:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p9O8n-0007Ba-UE for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2022 05:22: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: Sun, 25 Dec 2022 10:22: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.167196370927600 (code B ref 52493); Sun, 25 Dec 2022 10:22:01 +0000 Original-Received: (at 52493) by debbugs.gnu.org; 25 Dec 2022 10:21:49 +0000 Original-Received: from localhost ([127.0.0.1]:47589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9O8a-0007B5-NQ for submit@debbugs.gnu.org; Sun, 25 Dec 2022 05:21:49 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:55665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9O8Y-0007Ar-DP for 52493@debbugs.gnu.org; Sun, 25 Dec 2022 05:21:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1671963699; bh=LmtloOyQTR7W34xip/DI0laRRCiO7hWognYh3sClgi4=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=pqgM+sLSsXXIXIlYbWjqSKVrXNK5vQhviU/ZtQYZYfSEupRGqpVbibjdr/RDca6Rs 5dkTg9JcDhz79GRr1z8XI164+V9UrvWUgs7+qiX5Nv8wcivvoSW8Rovvs9HTh2VjK1 BO+9juJiHpuspcc8/LMtE+JVERphCowOZacRBr4Un+HTMQOEMvhDF4tKlcP5wedPmF GdVe1+4UA6k0tVTws4G2fOqOIu7GD1Y7uaY+hmg2P/kwzMbIqutbjwVv6NnCCpxl4z N+QVrwBp5iai28sQFFGLAs6FAvP4u3ESPOth+qBrgdgrFMeQ77FyzOn+oHPyEmROgT XxttmmIkIDtjg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.1.100] ([212.95.5.205]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1po0-1p7CHL0D3Q-002Jjq; Sun, 25 Dec 2022 11:21:39 +0100 Content-Language: en-US In-Reply-To: <83abf08e-44d9-8a05-f746-5f6a8469ab02@yandex.ru> X-Provags-ID: V03:K1:9Uil4mIkuAj5Su/MK0pd5ZhcYXUSPow8l6xyz2sETBOOjcscOOu Zrq1RvzzHu5Z8n+yMsnufXCpvcyi+0IL67UFO6lyyguZKLdQqJm0A0ZRN9JR5kCoVryHhHV S2tOfjDjT1s3vouaEiivD8aC1ikjgqSs67VngSPIllLu3aLGCfeFjBLFOVPleRobPK4TCxQ ypy8kcIRw0CIt0rRxgbrw== UI-OutboundReport: notjunk:1;M01:P0:CsMlTl7re3I=;H++5R/6XghHUlzhj92tdI58VWpi otAPGLXFLI+Z1WGeBfLn778cqXw0ejvZGElfDL4NpcpAUk4GVtbup/7LQws3HzaNfsMrNWzwT TgW81gzs7Zq+kEvTx2BedO8/VVR/OaxPhXH4DObHu0iBhQYTwciuQEQXshpCmb2DAei6n4k85 Ppwk8sUc69/EAtu0WaPxgZFbV7kaWufHhNys7C8byX+gyEoq+YRB788X/OGIdT2L4u/SMK5p5 9mnuxGD7QefJpRn86OyIefvqnM0Zht1MRRaQSUIuZaIOjcUkx69VMXD7BjEzz1ymXaI6KKpqF Sz4fVmuUs6IdUVoeX75nWG38K6aPL8xAfWz2flw93BFD8uR6IsI3d7ZjKk+yyVYclQ8ZDcyI8 iWTp6CHfEuQing/SoxJJsGdn94Ffa+nxYyVVgI56srX7bwaE04+nY4p3qHeI27e94RDRtNese WW5nKn6BPSs3hEaW5c82eoYJJyY3YXBSq1dPnUdVPhI5JNQhJOCDtFVaw9z4FSa5iZgfVoCZ+ EUNX7Sk6tLSoARke28dte93Ujbx9144VA9q2UKp2ESBcwSqTuxIdcwIrklFMubQr89COOHOHi mxVzlLuWBbpEWHotwt+nBo01e4Pl9ioZZamOokdyZQLuoXAIwIn5mFnTvQAVYGLZSDnOu7/gz e/TBcijGKXxp6mPCmx8Ij49UQGgYNFCKJr20oO12trcRjqEvbKTQ6ZSDRp5nl2YNjk7knWsI5 4gKOAJWRSzZzuNCQ2RHC1F/exEPot6/ErcpnTRxL9oS38siwxINqL1zqPGRwXQVNZdA9kKKv 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:251845 Archived-At: This is a multi-part message in MIME format. --------------OkyYfIvjGgfxcyo6ZU9jrUnO Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > adjust_frame_size .. pixel_height .. 1260 .. text_height .. 1260 > x_new_font .. ascent .. 31 .. descent .. 6 .. line_height .. 37 > adjust_frame_size .. pixel_height .. 1224 .. text_height .. 1224 > x_new_font .. ascent .. 31 .. descent .. 6 .. line_height .. 37 > adjust_frame_size .. pixel_height .. 1188 .. text_height .. 1188 > x_new_font .. ascent .. 31 .. descent .. 6 .. line_height .. 37 FWIW I can't see anything wrong with the font. From the earlier xg_frame_set_char_size, visible, PS=1408x1188, XS=1408x1184 ConfigureNotify, PS=1408x1188, XS=1408x1152 xg_frame_resized, changed, PS=1408x1188, XS=1408x1152 I can only tell that, for example, we want to resize the frame from 1408x1188 to 1408x1184 pixels but the ensuing ConfigureNotify tells us that mutter has sized us down to 1408x1152 pixels (that's the -36 increment you see every time) and we comply. I have no idea why that should happen - after all 1184 is (* 37 32) so it's rather the earlier 1188 that's wrong here. But we've also set the base height to 84 and a height increment of 18 which are both suspicious. Anyway: I attach a new patch to shed more light on this. Three 'set-face-attribute' iterations suffice, post me the contents of *foo* please. Thanks, martin --------------OkyYfIvjGgfxcyo6ZU9jrUnO Content-Type: text/x-patch; charset=UTF-8; name="Gutov.diff" Content-Disposition: attachment; filename="Gutov.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3Avd2luZG93LmVsIGIvbGlzcC93aW5kb3cuZWwKaW5kZXggYTEx MjkzZDM3Mi4uM2QwNjRlMTJkNyAxMDA2NDQKLS0tIGEvbGlzcC93aW5kb3cuZWwKKysrIGIv bGlzcC93aW5kb3cuZWwKQEAgLTEwNTk2LDYgKzEwNTk2LDE3IEBAIHdpbmRvdy1wcmVmaXgt bWFwCiAgICIwIiAjJ2RlbGV0ZS13aW5kb3dzLW9uKQogKGRlZm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wgbWFrZV9maXhudW0gKG5l d190ZXh0X2hlaWdodCksCisJIGludGVybiAoIm9sZF9uYXRpdmVfaGVpZ2h0IiksIG1ha2Vf Zml4bnVtIChvbGRfbmF0aXZlX2hlaWdodCksCisJIGludGVybiAoInRleHRfdG9fcGl4ZWwi KSwKKwkgbWFrZV9maXhudW0gKEZSQU1FX1RFWFRfVE9fUElYRUxfSEVJR0hUIChmLCBuZXdf dGV4dF9oZWlnaHQpKSk7CisKKyAgY2FsbDggKFFmb29faXQsCisJIGludGVybiAoIiAgIHRv cF9tYXJnaW4iKSwgbWFrZV9maXhudW0gKEZSQU1FX1RPUF9NQVJHSU5fSEVJR0hUIChmKSks CisJIGludGVybiAoInNjcm9sbF9iYXIiKSwgbWFrZV9maXhudW0gKEZSQU1FX1NDUk9MTF9C QVJfQVJFQV9IRUlHSFQgKGYpKSwKKwkgaW50ZXJuICgiMipib3JkZXIiKSwgbWFrZV9maXhu dW0gKDIgKiBGUkFNRV9JTlRFUk5BTF9CT1JERVJfV0lEVEggKGYpKSwKKwkgaW50ZXJuICgi ICAgbWluX2lubmVyX2hlaWdodCIpLCBtYWtlX2ZpeG51bSAobWluX2lubmVyX2hlaWdodCkp OworCiAgIGlmIChGUkFNRV9XSU5ET1dfUCAoZikKICAgICAgICYmIGYtPmNhbl9zZXRfd2lu ZG93X3NpemUKICAgICAgIC8qIEZvciBpbmhpYml0ID09IDEgY2FsbCB0aGUgd2luZG93X3Np emVfaG9vayBvbmx5IGlmIGEgbmF0aXZlCkBAIC05MDYsNiArOTE4LDEwIEBAIGFkanVzdF9m cmFtZV9zaXplIChzdHJ1Y3QgZnJhbWUgKmYsIGludCBuZXdfdGV4dF93aWR0aCwgaW50IG5l d190ZXh0X2hlaWdodCwKIAogICB1bmJsb2NrX2lucHV0ICgpOwogCisgIGNhbGw1IChRZm9v X2l0LCBpbnRlcm4gKCJhZGp1c3RfZnJhbWVfc2l6ZV8yIiksCisJIGludGVybiAoInBpeGVs X2hlaWdodCIpL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