* src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)
This commit is contained in:
parent
31a6a37d45
commit
c95a34c960
1 changed files with 3 additions and 0 deletions
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue