GNU bug report logs - #60585
30.0.50; global-text-scale-adjust shrinks window (was not before)

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Thu, 5 Jan 2023 22:30:02 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Po Lu <luangruo <at> yahoo.com>
Cc: martin rudalics <rudalics <at> gmx.at>, Eli Zaretskii <eliz <at> gnu.org>, rpluim <at> gmail.com, 60585 <at> debbugs.gnu.org
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
On 17/02/2023 04:43, Po Lu via Bug reports for GNU Emacs, the Swiss army 
knife of text editors wrote:
> Dmitry Gutov<dgutov <at> yandex.ru>  writes:
> 
>> On 16/02/2023 05:00, Po Lu wrote:
>>> Dmitry Gutov<dgutov <at> yandex.ru>   writes:
>>>
>>>> Here you go:
>>>>
>>>> (gdb) frame 23
>>>> #23 0x00005555556d097f in xg_frame_set_char_size
>>>>    (f=f <at> entry=0x55555630eb60, width=width <at> entry=1728,
>>>>    height=height <at> 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 <ftcrhbfont_driver>
}





This bug report was last modified 2 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.