changeset 29151:fa8f476affa7

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Wed, 24 May 2000 13:10:23 +0000
parents 0398ec3316c5
children 9e9b47b53f50
files etc/NEWS lispref/display.texi src/ChangeLog
diffstat 3 files changed, 29 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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'
 
--- 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
Binary file src/ChangeLog has changed