]> git.eshelyaron.com Git - emacs.git/commit
Allow controlling the underline position of faces
authorPo Lu <luangruo@yahoo.com>
Mon, 10 Jan 2022 11:26:46 +0000 (19:26 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 10 Jan 2022 11:26:46 +0000 (19:26 +0800)
commit4f50d964e51bbe5219f40df4353f4314c7ade985
tree8c68be6ee5b0b9999bb61ed7dd3553b456828b7b
parente36f076eb7681e32b3b0cc61c4fd33e448e3bc74
Allow controlling the underline position of faces

* doc/lispref/display.texi (Face Attributes): Document new
`:position' property of the `:underline' attribute.
* etc/NEWS: Announce new property.
* lisp/cus-face.el (custom-face-attributes): Implement
customization for new face attribute.
* src/dispextern.h (struct face): New fields
`underline_pixels_above_descent_line' and
`underline_at_descent_line_p'.
* src/haikuterm.c (haiku_draw_text_decoration):
* src/nsterm.m (ns_draw_text_decoration):
* src/w32term.c (w32_draw_glyph_string):
* src/xterm.c (x_draw_glyph_string): Respect new face fields.

* src/xfaces.c (realize_gui_face): Handle new `:position'
keyword.
(syms_of_xfaces): New symbol `:position'.
doc/lispref/display.texi
etc/NEWS
lisp/cus-face.el
src/dispextern.h
src/haikuterm.c
src/nsterm.m
src/w32term.c
src/xfaces.c
src/xterm.c