emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xterm.c,v


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c,v
Date: Tue, 10 Jun 2008 20:22:16 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Stefan Monnier <monnier>        08/06/10 20:22:11

Index: src/xterm.c
===================================================================
RCS file: /sources/emacs/emacs/src/xterm.c,v
retrieving revision 1.997
retrieving revision 1.998
diff -u -b -r1.997 -r1.998
--- src/xterm.c 10 Jun 2008 20:01:54 -0000      1.997
+++ src/xterm.c 10 Jun 2008 20:22:10 -0000      1.998
@@ -183,12 +183,6 @@
 
 int x_underline_at_descent_line;
 
-/* Require underline to be at least this many screen pixels below baseline
-   This to avoid underline "merging" with the base of letters at small
-   font sizes, particularly when x_use_underline_position_properties is on. */
-
-int x_underline_minimum_display_offset;
-
 /* This is a chain of structures for all the X displays currently in
    use.  */
 
@@ -2750,8 +2744,7 @@
                  else if (s->font)
                    position = (s->font->descent + 1) / 2;
                }
-             if (x_underline_minimum_display_offset)
-               position = max (position, eabs 
(x_underline_minimum_display_offset));
+             position = max (position, underline_minimum_offset);
            }
          /* Check the sanity of thickness and position.  We should
             avoid drawing underline out of the current line area.  */
@@ -10789,8 +10782,8 @@
      doc: /* *Non-nil means make use of UNDERLINE_POSITION font properties.
 A value of nil means ignore them.  If you encounter fonts with bogus
 UNDERLINE_POSITION font properties, for example 7x13 on XFree prior
-to 4.1, set this to nil.  Variable `x-underline-minimum-display-offset' may
-be used to override the font's UNDERLINE_POSITION for small font display
+to 4.1, set this to nil.  You can also use `underline-minimum-offset'
+to override the font's UNDERLINE_POSITION for small font display
 sizes.  */);
   x_use_underline_position_properties = 1;
 
@@ -10802,16 +10795,6 @@
 baseline level.  The default value is nil.  */);
   x_underline_at_descent_line = 0;
 
-  DEFVAR_INT ("x-underline-minimum-display-offset",
-              &x_underline_minimum_display_offset,
-     doc: /* *When > 0, underline is drawn at least that many screen pixels 
below baseline.
-This can improve legibility of underlined text at small font sizes,
-particularly when using variable `x-use-underline-position-properties'
-with fonts that specify an UNDERLINE_POSITION relatively close to the
-baseline.  The default value is 0. */);
-  x_underline_minimum_display_offset = 0;
-
-
   DEFVAR_BOOL ("x-mouse-click-focus-ignore-position",
               &x_mouse_click_focus_ignore_position,
     doc: /* Non-nil means that a mouse click to focus a frame does not move 
point.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]