From 0fc63cc42640000e083d705da929b74953d4b084 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 30 Dec 2004 12:24:03 +0000 Subject: [PATCH] (struct frame): New member space_width. (FRAME_SPACE_WIDTH): New macro. --- src/frame.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frame.h b/src/frame.h index 8bdaff99754..4a0b1ff0f03 100644 --- a/src/frame.h +++ b/src/frame.h @@ -275,6 +275,9 @@ struct frame /* Canonical X unit. Width of default font, in pixels. */ int column_width; + /* Widht of space glyph of default font, in pixels. */ + int space_width; + /* Canonical Y unit. Height of a line, in pixels. */ int line_height; @@ -825,10 +828,14 @@ extern Lisp_Object selected_frame; #define FRAME_LINE_HEIGHT(F) ((F)->line_height) /* Canonical x-unit on frame F. - This value currently equals the width of the default font of F. */ + This value currently equals the average width of the default font of F. */ #define FRAME_COLUMN_WIDTH(F) ((F)->column_width) +/* Space glyph width of the default font of frame F. */ + +#define FRAME_SPACE_WIDTH(F) ((F)->space_width) + /* Pixel width of areas used to display truncation marks, continuation marks, overlay arrows. This is 0 for terminal frames. */ -- 2.39.5