changeset 59203:3573aee81cc8

(struct frame): New member space_width. (FRAME_SPACE_WIDTH): New macro.
author Kenichi Handa <handa@m17n.org>
date Thu, 30 Dec 2004 12:24:03 +0000
parents 6909d89d7c99
children d0fe8e91ef27
files src/frame.h
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.h	Thu Dec 30 12:23:24 2004 +0000
+++ b/src/frame.h	Thu Dec 30 12:24:03 2004 +0000
@@ -275,6 +275,9 @@
   /* 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 @@
 #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.  */