diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2022-07-30 17:21:54 +0900 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2022-07-30 17:21:54 +0900 |
commit | c95a34c96013aaba1cdf2166c4a1d0e2c5f3de6a (patch) | |
tree | 490d4e98c465f1b61d424fc9328b1cbd0774c94a | |
parent | 31a6a37d45dbf324f26048ce45f82213860f2ec8 (diff) | |
download | emacs-c95a34c96013aaba1cdf2166c4a1d0e2c5f3de6a.tar.gz |
* src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)
-rw-r--r-- | src/macfont.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/macfont.m b/src/macfont.m index e3dab1c42e0..b30c3c9763c 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -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 (); |