aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 51f001bfd45..0bb5607512c 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -89,6 +89,10 @@ static int any_help_event_p;
89/* Last window where we saw the mouse. Used by mouse-autoselect-window. */ 89/* Last window where we saw the mouse. Used by mouse-autoselect-window. */
90static Lisp_Object last_window; 90static Lisp_Object last_window;
91 91
92/* Non-zero means make use of UNDERLINE_POSITION font properties.
93 (Not yet supported, see TODO in x_draw_glyph_string.) */
94int x_use_underline_position_properties;
95
92extern unsigned int msh_mousewheel; 96extern unsigned int msh_mousewheel;
93 97
94extern void free_frame_menubar (); 98extern void free_frame_menubar ();
@@ -2639,7 +2643,9 @@ x_draw_glyph_string (s)
2639 unsigned long dy = s->height - h; 2643 unsigned long dy = s->height - h;
2640 2644
2641 /* TODO: Use font information for positioning and thickness 2645 /* TODO: Use font information for positioning and thickness
2642 of underline. See OUTLINETEXTMETRIC, and xterm.c. */ 2646 of underline. See OUTLINETEXTMETRIC, and xterm.c.
2647 Note: If you make this work, don't forget to change the
2648 doc string of x-use-underline-position-properties below. */
2643 if (s->face->underline_defaulted_p) 2649 if (s->face->underline_defaulted_p)
2644 { 2650 {
2645 w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, 2651 w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x,
@@ -6707,6 +6713,18 @@ the cursor have no effect. */);
6707 &w32_use_visible_system_caret, 0)) 6713 &w32_use_visible_system_caret, 0))
6708 w32_use_visible_system_caret = 0; 6714 w32_use_visible_system_caret = 0;
6709 6715
6716 /* We don't yet support this, but defining this here avoids whining
6717 from cus-start.el and other places, like "M-x set-variable". */
6718 DEFVAR_BOOL ("x-use-underline-position-properties",
6719 &x_use_underline_position_properties,
6720 doc: /* *Non-nil means make use of UNDERLINE_POSITION font properties.
6721nil means ignore them. If you encounter fonts with bogus
6722UNDERLINE_POSITION font properties, for example 7x13 on XFree prior
6723to 4.1, set this to nil.
6724
6725NOTE: Not supported on MS-Windows yet. */);
6726 x_use_underline_position_properties = 0;
6727
6710 DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars, 6728 DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars,
6711 doc: /* If not nil, Emacs uses toolkit scroll bars. */); 6729 doc: /* If not nil, Emacs uses toolkit scroll bars. */);
6712 Vx_toolkit_scroll_bars = Qt; 6730 Vx_toolkit_scroll_bars = Qt;