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: Fri, 6 Jan 2023 20:14:52 +0200 Message-ID: <8df08d50-146f-9b76-efa0-ba101e53e7c0@yandex.ru> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@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> <8bca33d8-55a5-9a96-2adf-cc751eed22e5@yandex.ru> <21a55a64-541d-345c-33d3-7c8eac182e83@gmx.at> <89a94819-8bdf-55a3-9167-0cc8d11215ee@yandex.ru> <9be7030e-ce19-0baa-58b8-e2d483efab8f@gmx.at> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2TY8Z2hBFX3emugOPVshchbe" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37354"; 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 Fri Jan 06 19:16:13 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 1pDrGH-0009a1-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Jan 2023 19:16:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDrG9-0006Db-Vk; Fri, 06 Jan 2023 13:16: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 1pDrG7-0006CY-2G for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2023 13:16: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 1pDrG6-0004VX-QH for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2023 13:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDrG6-0007CG-Ji for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2023 13:16: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: Fri, 06 Jan 2023 18:16: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.167302890627544 (code B ref 52493); Fri, 06 Jan 2023 18:16:02 +0000 Original-Received: (at 52493) by debbugs.gnu.org; 6 Jan 2023 18:15:06 +0000 Original-Received: from localhost ([127.0.0.1]:55821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDrF8-00079o-IR for submit@debbugs.gnu.org; Fri, 06 Jan 2023 13:15:06 -0500 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:52869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDrF6-00078w-FF for 52493@debbugs.gnu.org; Fri, 06 Jan 2023 13:15:01 -0500 Original-Received: by mail-wm1-f41.google.com with SMTP id ay40so1625558wmb.2 for <52493@debbugs.gnu.org>; Fri, 06 Jan 2023 10:15:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=IzqGmSwIxOUQ+2ntc8+2ojY/4cc8/uyMbrNvafmx4Fc=; b=l/gyJNDDfHZdQfsuQvo1ef5F9Gi8H2usqrcm8Ug2QTu/yMhj0/aezUoaycPfZCtLXd THgjoj5YcDSAr4EUpZ9/A3rMdpk0BY1tli0Xn9c23Vi6W/PIVVhaOqREtx95ansJH4V8 et+HveQz9ZkBHAzy6Xt2zr5DBDVTNFZqMHXsqy9gTwgqlOdeRD4d7i+Y+wMEAd921DzF 5dILOMKoYQ5jrGH3ryszpA2GCIO+m6zIJLy7qz/Y+omrAtBwQ5xWMMyYpAO2kw05YL4m tmR4ETn9LrFH/q4qSQkHKHYeiLxAaxVChZb3SKHLzEawar72g2oRuEUgwjlGcfxfz5CV Hc9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=IzqGmSwIxOUQ+2ntc8+2ojY/4cc8/uyMbrNvafmx4Fc=; b=POOduM/X/+PjKeU2KYhOjXHHFirACym5adwvug1t5/7JOI6vSxyKsOEfdSrSnt/umT tUPV5a6e+YZioxhaBiJYlSWLA2m98yN1RQd/kVOiyxvspmQqBJhIw7B1Cr9E/ESIoWm3 Tn96nNOsjw7F11KxussFWos2IJKDCoYnvMxkS3wHbB3vv5n0+STDhjrMl2BQJS3iG7hk k0MqsL6frU90DpqHEFui1bpOrn0ihzzfdWn8GGOAXKdTgLbWnMe3HJ3ExhUIHYYu1Pnr bF2SyLf21rMCkv6ITPNvEOpLyWxkuKWDQ2RS6DZKaque6/nTi62yX1HzMJwX5hdpCCm9 1NJQ== X-Gm-Message-State: AFqh2kpSbA0Pvpe2I4MmS3P/70xAgT7uQdz4KcEaSMEtfmsBcjWNgov/ hNVpeSL3+02fICQr/kDgcKI= X-Google-Smtp-Source: AMrXdXtIyAmOTVc6x9TPkCKnZs2q0kgH7ny4rGxlTZzg+7ZQTTwfkmbjsufwAqzjI2UWp/7V841JUQ== X-Received: by 2002:a05:600c:354b:b0:3d0:4993:d45b with SMTP id i11-20020a05600c354b00b003d04993d45bmr41604473wmq.4.1673028894466; Fri, 06 Jan 2023 10:14:54 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id p7-20020a05600c1d8700b003d973d4fb28sm7193576wms.4.2023.01.06.10.14.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Jan 2023 10:14:53 -0800 (PST) Content-Language: en-US In-Reply-To: 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:252741 Archived-At: This is a multi-part message in MIME format. --------------2TY8Z2hBFX3emugOPVshchbe Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 06/01/2023 19:47, martin rudalics wrote: > > So I double-checked -- and both behaviors with the latest patch match > > what the current (unpatched) emacs-29 does. > > With one subtle difference: In the unpatched version the WM shrinks the > size.  In the patched version we do it ourselves and the WM does what we > are asking for. > >   x_new_font old char size 18x36 new char size 21x45 text chars 102x36 > old text pixels 1836x1296 new text pixels 2142x1620 >   xg_wm_set_size_hint scale 2 char width 21 toolbar 0 vscroll 32 > fringes 16 borders 0 base width 34 width inc 10 >       char height 45 menubar 50 toolbar 82 hscroll 0 borders 0 base > height 88 height inc 22 >   xg_frame_set_char_size old native pixels 1884x1296 new native pixels > 2190x1620 outer pixels 1094x858 outer rest 0x0 >   xg_frame_resized old native pixels 1884x1296 new native pixels 2188x1584 >   adjust_frame_size old native pixels 1884x1296 new native pixels > 2188x1584 old text pixels 1836x1296 new text pixels 2140x1584 old text > chars 102x36 new text chars 101x35 > > Here we round down the outer pixel sizes from 1095x876 to 1094x858 to > meet the WM requirements (outer rest is 0x0 in all your steps).  So > incidentally, I reverse-engineered the WM.  Now let's try to round up > instead.  I'm quite confident that this will make your frames grow. Nope. But this one seems the best one yet: - No height shrinking. - Width shrinks only once (at certain rare widths), and after that it is stable. Attaching *foo* after this: (set-frame-width nil 113) ; x1 (set-face-attribute 'default nil :height 110 :family "InconsolataLGC") ; x3 --------------2TY8Z2hBFX3emugOPVshchbe Content-Type: text/plain; charset=UTF-8; name="foo.txt" Content-Disposition: attachment; filename="foo.txt" Content-Transfer-Encoding: base64 YWRqdXN0X2ZyYW1lX3NpemUgb2xkIG5hdGl2ZSBwaXhlbHMgODB4MjUgbmV3IG5hdGl2ZSBw aXhlbHMgODB4MjUgb2xkIHRleHQgcGl4ZWxzIDgweDI1IG5ldyB0ZXh0IHBpeGVscyA4MHgy NCBvbGQgdGV4dCBjaGFycyA4MHgyNSBuZXcgdGV4dCBjaGFycyA4MHgyNAphZGp1c3RfZnJh bWVfc2l6ZSBvbGQgbmF0aXZlIHBpeGVscyA4MHgyNSBuZXcgbmF0aXZlIHBpeGVscyAxNDU2 eDkwMCBvbGQgdGV4dCBwaXhlbHMgODB4MjUgbmV3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