Next: Display Margins, Previous: Pixel Specification, Up: Display Property
Here are the other sorts of display specifications that you can use
in the display text property.
Recursive display specifications are not supported—string's
display properties, if any, are not used.
(image . image-props)(slice x y width height)image specifies a slice
(a partial area) of the image to display. The elements y and
x specify the top left corner of the slice, within the image;
width and height specify the width and height of the
slice. Integer values are numbers of pixels. A floating point number
in the range 0.0–1.0 stands for that fraction of the width or height
of the entire image.
((margin nil) string)(space-width factor)(height height)(+ n)(- n)height bound to the current specified font height.
(raise factor)factor must be a number, which is interpreted as a multiple of the height of the affected text. If it is positive, that means to display the characters raised. If it is negative, that means to display them lower down.
If the text also has a height display specification, that does
not affect the amount of raising or lowering, which is based on the
faces used for the text.
You can make any display specification conditional. To do that,
package it in another list of the form
(when condition . spec).
Then the specification spec applies only when
condition evaluates to a non-nil value. During the
evaluation, object is bound to the string or buffer having the
conditional display property. position and
buffer-position are bound to the position within object
and the buffer position where the display property was found,
respectively. Both positions can be different when object is a
string.
