aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-04-28 10:50:50 +0300
committerEli Zaretskii2022-04-28 10:50:50 +0300
commit76d4e19f8984128d9253673fa91ce5423e9293f1 (patch)
treec617ccae45501db6cfcfec2da7d7d4400a9f260b /src
parent9c70045f674b31db7a640d8a59939ce8df7ed37b (diff)
downloademacs-76d4e19f8984128d9253673fa91ce5423e9293f1.tar.gz
emacs-76d4e19f8984128d9253673fa91ce5423e9293f1.zip
Fix handling of proportional fonts on MS-Windows
* src/xfaces.c (Fx_family_fonts): Consider fonts whose :spacing value is numeric, but still indicates that they are proportional, to be proportional. * lisp/textmodes/artist.el (artist-mode): Fix test for monospaced fonts.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index d7f1f4d96e5..c41782f4f38 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1573,7 +1573,14 @@ the face font sort order. */)
1573 make_fixnum (point), 1573 make_fixnum (point),
1574 FONT_WEIGHT_SYMBOLIC (font), 1574 FONT_WEIGHT_SYMBOLIC (font),
1575 FONT_SLANT_SYMBOLIC (font), 1575 FONT_SLANT_SYMBOLIC (font),
1576 NILP (spacing) || EQ (spacing, Qp) ? Qnil : Qt, 1576 (NILP (spacing)
1577 || EQ (spacing, Qp)
1578 /* If the font was specified in a way
1579 different from XLFD (e.g., on MS-Windows),
1580 we will have a number there, not 'p'. */
1581 || EQ (spacing,
1582 make_fixnum (FONT_SPACING_PROPORTIONAL)))
1583 ? Qnil : Qt,
1577 Ffont_xlfd_name (font, Qnil), 1584 Ffont_xlfd_name (font, Qnil),
1578 AREF (font, FONT_REGISTRY_INDEX)); 1585 AREF (font, FONT_REGISTRY_INDEX));
1579 result = Fcons (v, result); 1586 result = Fcons (v, result);