bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60585: 30.0.50; global-text-scale-adjust shrinks window (was not bef


From: Dmitry Gutov
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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

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@yandex.ru>  writes:

On 16/02/2023 05:00, Po Lu wrote:
Dmitry Gutov<dgutov@yandex.ru>   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 <ftcrhbfont_driver>
}






reply via email to

[Prev in Thread] Current Thread [Next in Thread]