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: Fri, 17 Feb 2023 13:54:06 +0200 Message-ID: References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <3ba27f8c-779a-6f29-45a1-2b7e5a4dcb14@gmx.at> <0144e9a3-57ab-6549-d382-744b141066ec@yandex.ru> <90b5e151-39d1-0248-7be5-8084d8883e5f@gmx.at> <309dcf34-b553-58c2-34a5-270028b05347@yandex.ru> <8913f7e5-5509-3a8e-7413-991b404c3e4e@gmx.at> <4826afb4-e4a7-3845-4cc4-c696123b5e8d@yandex.ru> <875yc92dau.fsf@yahoo.com> <246c3cb4-c50b-608d-7315-add148ba5548@yandex.ru> <87ilg81oyb.fsf@yahoo.com> <006c8e10-72ce-ef51-e005-c604fd7ebd8f@yandex.ru> <87a61j1wtc.fsf@yahoo.com> <875yc71s3q.fsf@yahoo.com> <967de259-909d-20e3-3a49-8133bd42c073@yandex.ru> <87a61ixogd.fsf@yahoo.com> <7f779f32-92eb-b6be-68e0-0030ad0d045b@yandex.ru> <87wn4iqppp.fsf@yahoo.com> <87zg9dnhaf.fsf@yahoo.com> 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="25886"; 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: martin rudalics , Eli Zaretskii , rpluim@gmail.com, 60585@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 17 12:55:23 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 1pSzKl-0006b4-Bi for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Feb 2023 12:55:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSzKT-0000xS-7v; Fri, 17 Feb 2023 06:55: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 1pSzKR-0000wD-2R for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 06:55: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 1pSzKQ-0007VE-Ny for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 06:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSzKQ-0006CB-5T for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 06:55: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, 17 Feb 2023 11:55:02 +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.167663485623753 (code B ref 60585); Fri, 17 Feb 2023 11:55:02 +0000 Original-Received: (at 60585) by debbugs.gnu.org; 17 Feb 2023 11:54:16 +0000 Original-Received: from localhost ([127.0.0.1]:38627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSzJg-0006B3-FQ for submit@debbugs.gnu.org; Fri, 17 Feb 2023 06:54:16 -0500 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:41501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSzJe-0006Ak-JT for 60585@debbugs.gnu.org; Fri, 17 Feb 2023 06:54:15 -0500 Original-Received: by mail-wr1-f46.google.com with SMTP id i15so493803wry.8 for <60585@debbugs.gnu.org>; Fri, 17 Feb 2023 03:54:14 -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=JDdRZpAML8TXpCkr4a2aOk5u1NAZGRFw7211lnfsvPI=; b=E79uQ4wK8xmX9RtvDvQm65/n7Mu91erQEjqBgMhbYOtfPKwLyUpyf2rrAfCPGMRHPz aab1xNbDLtipn0fcvfMZAeWgonjjcP4RDeIdAdRFGkv0QxzO4A7fx9evHlNFxUbYjmIj mxWO57TTeB/xzOeBcHpEBViwTUM25hIHu6eGSZtasNQ7/jW6/QvvuNqa3z0Qz2zo9lG0 6Thq2K/on6+goSHhy9pzhaI3Rb7ow5So2gsXbLBrH6d2whMz+JiapvZlou3naOUtjxsb NLsPJk3E3Z1PQiNmUXWnT2YEgnFR0iyGL7OuPUqsjND6+0pG9laEVV/mL5EUJd17B7Lq Rk0g== 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=JDdRZpAML8TXpCkr4a2aOk5u1NAZGRFw7211lnfsvPI=; b=BT3kQ6dQvRVgeo8GwWevZZI8xvhAbf9XVRsMlvVDJgBC8rrJw46uzTYMhu1JLP5Ptm sXGqPAw30RSGe2lX3yKRaZRz03DAeWSp7ew7vOvfYAXMSc22s1RK7bQg5LQWUcPjkv9f VhmxhFBpuFL0PHRmxrgx0sL3SEnPg5k8ZqnKBUr2y3DxCJqiaUM7HsWDTnYEOUOx6PZo 7eKBYTtOEXq5/v4YL0cLrh4aflvAA+4EhmvAyvoUraPW+gijmwohOURei1buB8vbkbPI IPvnk5h02IGLVOWB89mfAX2O/HkeSZaSyTTUI9Px4+8IXQcVovzn9MQ+iCszr1VSaq+r v86g== X-Gm-Message-State: AO0yUKVzJxOb7Tsx8iYKCkErQukPngtTSWi4emEZYWHAlG76XI0mAUg5 qBY1OZvDS1AGjjo+cdAox4o= X-Google-Smtp-Source: AK7set9C+JZFMAPSBJXJUcJ29J57wvbIxUZcvB5rVqkAKNKfKujSxuVhxhqkvFHBueSXeJEWazAeTQ== X-Received: by 2002:a5d:6051:0:b0:2c5:52fc:ed1a with SMTP id j17-20020a5d6051000000b002c552fced1amr54632wrt.55.1676634848443; Fri, 17 Feb 2023 03:54:08 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id s10-20020a5d6a8a000000b002c54c7153f0sm4054423wru.1.2023.02.17.03.54.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Feb 2023 03:54:07 -0800 (PST) Content-Language: en-US In-Reply-To: <87zg9dnhaf.fsf@yahoo.com> 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:255876 Archived-At: On 17/02/2023 04:43, Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Dmitry Gutov writes: > >> On 16/02/2023 05:00, Po Lu wrote: >>> Dmitry Gutov writes: >>> >>>> Here you go: >>>> >>>> (gdb) frame 23 >>>> #23 0x00005555556d097f in xg_frame_set_char_size >>>> (f=f@entry=0x55555630eb60, width=width@entry=1728, >>>> height=height@entry=1620) at gtkutil.c:1425 >>>> 1425 x_wait_for_event (f, ConfigureNotify); >>>> (gdb) print f->column_width >>>> $2 = 21 >>>> (gdb) print f->line_height >>>> $3 = 45 >>>> (gdb) frame 26 >>>> #26 0x000055555568f0e6 in x_new_font (f=0x55555630eb60, >>>> font_object=XIL(0x5555560e3465), fontset=27) at xterm.c:26576 >>>> 26576 adjust_frame_size >>>> (gdb) print font->average_width >>>> $4 = 21 >>>> (gdb) print font_ascent >>>> $5 = 37 >>>> (gdb) print font_descent >>>> $6 = 8 >>> These ascent and descent measurements are not correct for your font, >>> right? What does: >>> (gdb) p font_object >>> (gdb) xfont >>> say? >> The output doesn't seem very useful: >> >> (gdb) p font_object >> $6 = XIL(0x55555692631d) >> (gdb) xfont >> $7 = (struct font *) 0x555556926318 > Ah, please type: > > (gdb) *$7 > > after this, thanks. Thanks, looks like an exact match: #26 0x000055555568f0e6 in x_new_font (f=0x55555633b5c0, font_object=XIL(0x555556222605), fontset=28) at xterm.c:26576 26576 adjust_frame_size (gdb) p font_object $1 = XIL(0x555556222605) (gdb) xfont $2 = (struct font *) 0x555556222600 (gdb) *$2 Undefined command: "". Try "help". (gdb) print *$2 $3 = { header = { size = 4611686018997903377 }, props = {XIL(0x7f20), XIL(0x2ee260), XIL(0x746b20), XIL(0), XIL(0x9ed0), make_fixnum(20544), make_fixnum(25632), make_fixnum(25664), make_fixnum(35), XIL(0), make_fixnum(100), make_fixnum(0), XIL(0x555555e760f3), XIL(0), XIL(0x555556905ac4), XIL(0x555556905aa4), XIL(0x555556905b24)}, min_width = 21, max_width = 21, pixel_size = 35, height = 45, space_width = 21, average_width = 21, ascent = 37, descent = 8, underline_thickness = 1, underline_position = 6, vertical_centering = false, baseline_offset = 0, relative_compose = 0, default_ascent = 0, encoding_charset = -1, repertory_charset = -1, driver = 0x555555dc4900 }