# HG changeset patch # User Gerd Moellmann <gerd@gnu.org> # Date 959173823 0 # Node ID fa8f476affa732ade81c06649c2ebf87319995e3 # Parent 0398ec3316c5867986d33d32aabd02e7fce36e17 *** empty log message *** diff -r 0398ec3316c5 -r fa8f476affa7 etc/NEWS --- a/etc/NEWS Wed May 24 13:08:10 2000 +0000 +++ b/etc/NEWS Wed May 24 13:10:23 2000 +0000 @@ -1802,6 +1802,17 @@ strings that have been consed so far. +* Lisp-level Display features added after release 2.6 of the Emacs +Lisp Manual + +** Image specifications may contain the property `:ascent center'. + +When this property is specified, the image is vertically centered +around a centerline which would be the vertical center of text drawn +at the position of the image, in the manner specified by the text +properties and overlays that apply to the image. + + * New Lisp-level Display features in Emacs 21.1 Note that +++ before an item means the Lisp manual has been updated. @@ -2334,10 +2345,10 @@ If not specified, ASCENT defaults to the value 50 which means that the image will be centered with the base line of the row it appears in. -If ASCENT is `center' the image is vertically centered with text drawn -in the same face as the image. The point the image is aligned with is -the middle of the height of the face's font. That point is usually -different from the font's base line. +If ASCENT is `center' the image is vertically centered around a +centerline which is the vertical center of text drawn at the position +of the image, in the manner specified by the text properties and +overlays that apply to the image. `:margin MARGIN' diff -r 0398ec3316c5 -r fa8f476affa7 lispref/display.texi --- a/lispref/display.texi Wed May 24 13:08:10 2000 +0000 +++ b/lispref/display.texi Wed May 24 13:10:23 2000 +0000 @@ -2387,10 +2387,20 @@ @table @code @item :ascent @var{ascent} -The @code{:ascent} property specifies the percentage of the image's -height to use for its ascent---that is, the part above the baseline. The -value, @var{ascent}, must be a number in the range 0 to 100. If this -property is omitted, it defaults to 50. +The @code{:ascent} property specifies the amount of the image's +height to use for its ascent---that is, the part above the baseline. +The value, @var{ascent}, must be a number in the range 0 to 100, or +the symbol @code{center}. + +If @var{ascent} is a number, that percentage of the image's height is +used for its ascent. + +If @var{ascent} is @code{center}, the image is vertically centered +around a centerline which would be the vertical centerline of text drawn +at the position of the image, in the manner specified by the text +properties and overlays that apply to the image. + +If this property is omitted, it defaults to 50. @item :margin @var{margin} The @code{:margin} property specifies how many pixels to add as an extra diff -r 0398ec3316c5 -r fa8f476affa7 src/ChangeLog Binary file src/ChangeLog has changed