Subject: Re: 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

From: Dmitry Gutov <[email-masked]>
Date: Thu, 16 Feb 2023 04:09:53 +0200

On 13/02/2023 04:56, Po Lu wrote:
> Dmitry Gutov<[email-masked]>  writes:
> 
>> On 12/02/2023 05:26, Po Lu wrote:
>>> Right, thank you.  If you go up to frame 23, and then:
>>>     (gdb) p f->size_hints
>>>     (gdb) p f->hint_flags
>>> What is displayed?
>>> Also, what is:
>>>     (gdb) p xg_get_scale (f)
>> (gdb) p f->size_hints
>> There is no member named size_hints.
>> (gdb) p f->hint_flags
>> There is no member named hint_flags.
>> (gdb) p f
>> $5 = (struct frame *) 0x5555562c3060
>> (gdb) xpr
>> Lisp_Symbol
>> $6 = (struct Lisp_Symbol *) 0xaaaaac05fc40
>> Cannot access memory at address 0xaaaaac05fc48
>>
>> (gdb) p f->output_data.x->size_hints
>> $8 = {
>>    min_width = 34,
>>    min_height = 106,
>>    max_width = 0,
>>    max_height = 0,
>>    base_width = 34,
>>    base_height = 106,
>>    width_inc = 10,
>>    height_inc = 22,
>>    min_aspect = 0,
>>    max_aspect = 0,
>>    win_gravity = GDK_GRAVITY_NORTH_WEST
>> }
>> (gdb) p f->output_data.x->hint_flags
>> $9 = 106
>> (gdb) xpr
>> Lisp_Int0
>> $10 = 26
> Thanks.
> 
> What is f->column_width and f->line_height?  If you go up to x_new_font,
> what is font->average_width, font_ascent and font_descent?

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