diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-06-13 12:18:31 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-06-13 12:18:31 +0000 |
commit | 099b6577820e74de1b0793ba60da3a13616c54d9 (patch) | |
tree | 52c5975e3cd7229faa30f3531c1b9d10f1c3cbf9 /src | |
parent | 4da76c6afd2949be8f9852110b24dbff3a646c69 (diff) | |
download | emacs-099b6577820e74de1b0793ba60da3a13616c54d9.tar.gz |
(x_use_underline_position_properties): New variable.
(x_draw_glyph_string): Remind in a comment to change doc string of
x-use-underline-position-properties if/when underline positioning is
implemented.
(syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
and initialize it to nil.
Diffstat (limited to 'src')
-rw-r--r-- | src/w32term.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c index 1223aa310d9..1caa1313df4 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -87,6 +87,10 @@ static int any_help_event_p; /* Last window where we saw the mouse. Used by mouse-autoselect-window. */ static Lisp_Object last_window; +/* Non-zero means make use of UNDERLINE_POSITION font properties. + (Not yet supported, see TODO in x_draw_glyph_string.) */ +int x_use_underline_position_properties; + extern unsigned int msh_mousewheel; extern void free_frame_menubar (); @@ -2488,7 +2492,9 @@ x_draw_glyph_string (s) unsigned long dy = s->height - h; /* TODO: Use font information for positioning and thickness - of underline. See OUTLINETEXTMETRIC, and xterm.c. */ + of underline. See OUTLINETEXTMETRIC, and xterm.c. + Note: If you make this work, don't forget to change the + doc string of x-use-underline-position-properties below. */ if (s->face->underline_defaulted_p) { w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, @@ -6536,6 +6542,18 @@ the cursor have no effect. */); &w32_use_visible_system_caret, 0)) w32_use_visible_system_caret = 0; + /* We don't yet support this, but defining this here avoids whining + from cus-start.el and other places, like "M-x set-variable". */ + DEFVAR_BOOL ("x-use-underline-position-properties", + &x_use_underline_position_properties, + doc: /* *Non-nil means make use of UNDERLINE_POSITION font properties. +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. + +NOTE: Not supported on MS-Windows yet. */); + x_use_underline_position_properties = 0; + DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars, doc: /* If not nil, Emacs uses toolkit scroll bars. */); Vx_toolkit_scroll_bars = Qt; |