* src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)
This commit is contained in:
@@ -2628,6 +2628,9 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size)
|
||||
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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user