]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 30 Jul 2022 08:21:54 +0000 (17:21 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 30 Jul 2022 08:21:54 +0000 (17:21 +0900)
src/macfont.m

index e3dab1c42e018c9aa57f2902ff2dccbcb9daf373..b30c3c9763c1d37e8477f1602c0af610cf88f9f0 100644 (file)
@@ -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 ();