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

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

bug#56808: 29.0.50; Elusive display problem on macOS


From: Eli Zaretskii
Subject: bug#56808: 29.0.50; Elusive display problem on macOS
Date: Thu, 28 Jul 2022 16:37:03 +0300

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: 56808@debbugs.gnu.org
> Date: Thu, 28 Jul 2022 14:07:09 +0200
> 
> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> 
> > This is the font of the default face in both cases...
> 
> And space-width seems to come from nsfont.m:2696, which I found with
> LSP/find references:

M-? (a.k.a. xref-find-references) cannot find it?

>   glyph = macfont_get_glyph_for_character (font, ' ');
>   if (glyph != kCGFontIndexInvalid)
>     font->space_width = macfont_glyph_extents (font, glyph, NULL, NULL, 0);
>   else
>     /* dirty workaround */
>     font->space_width = pixel_size;
> 
> I don't think the else branch has been taken, because that wouldn't lead
> to a value of 8.

Maybe you should run with a watchpoint on font->space_width.





reply via email to

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