aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfont.c
diff options
context:
space:
mode:
authorChong Yidong2012-08-16 14:35:13 +0800
committerChong Yidong2012-08-16 14:35:13 +0800
commit032a42c88d421ee434e783e29bf2cde3d6a81e7b (patch)
tree24fa7910668c8e4c92da4cd50d753a9a0358c64d /src/xfont.c
parent1c308380b6f29e389dc10d418b9203a74d64dce2 (diff)
downloademacs-032a42c88d421ee434e783e29bf2cde3d6a81e7b.tar.gz
emacs-032a42c88d421ee434e783e29bf2cde3d6a81e7b.zip
For Xft and X font backends, set omitted max_width font fields.
* src/xfont.c (xfont_open): * src/xftfont.c (xftfont_open): Set the font's max_width field. * src/font.h (struct font): Update comments.
Diffstat (limited to 'src/xfont.c')
-rw-r--r--src/xfont.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xfont.c b/src/xfont.c
index 9e929eed678..072bce7bb0a 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -823,6 +823,7 @@ xfont_open (FRAME_PTR f, Lisp_Object entity, int pixel_size)
823 font->descent = xfont->descent; 823 font->descent = xfont->descent;
824 font->height = font->ascent + font->descent; 824 font->height = font->ascent + font->descent;
825 font->min_width = xfont->min_bounds.width; 825 font->min_width = xfont->min_bounds.width;
826 font->max_width = xfont->max_bounds.width;
826 if (xfont->min_bounds.width == xfont->max_bounds.width) 827 if (xfont->min_bounds.width == xfont->max_bounds.width)
827 { 828 {
828 /* Fixed width font. */ 829 /* Fixed width font. */