* src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)

This commit is contained in:
YAMAMOTO Mitsuharu 2022-07-30 17:21:54 +09:00
parent 31a6a37d45
commit c95a34c960

View file

@ -2628,6 +2628,9 @@ So we use CTFontDescriptorCreateMatchingFontDescriptor (no
font->pixel_size = size;
font->driver = &macfont_driver;
font->encoding_charset = font->repertory_charset = -1;
/* Clear font->space_width so macfont_monospace_width_multiplier may
not be confused by an uninitialized value. */
font->space_width = 0;
block_input ();