aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2005-01-05 16:36:19 +0000
committerKim F. Storm2005-01-05 16:36:19 +0000
commit678d2655f946c36557bfd23e68aa65a57b9dead7 (patch)
tree1157999d8569fc8c4e373b36fb32c5f149767d31
parentbf6e87cb553f51f9b0fb73c61751f1171f10f565 (diff)
downloademacs-678d2655f946c36557bfd23e68aa65a57b9dead7.tar.gz
emacs-678d2655f946c36557bfd23e68aa65a57b9dead7.zip
Fix line-height and line-spacing docs.
-rw-r--r--etc/NEWS20
1 files changed, 12 insertions, 8 deletions
diff --git a/etc/NEWS b/etc/NEWS
index b1f29619a2a..7ecdea1367e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1830,7 +1830,7 @@ c-require-final-newline. That is a list of modes, and only those
1830modes set require-final-newline. By default that's C, C++ and 1830modes set require-final-newline. By default that's C, C++ and
1831Objective-C. 1831Objective-C.
1832 1832
1833The specified modes set require-final-newline based on 1833The specified modes set require-final-newline based on
1834mode-require-final-newline, as usual. 1834mode-require-final-newline, as usual.
1835 1835
1836*** Format change for syntactic context elements. 1836*** Format change for syntactic context elements.
@@ -2619,7 +2619,7 @@ specified number of evenly sized slices (rows x columns).
2619A newline may now have line-height and line-spacing text or overlay 2619A newline may now have line-height and line-spacing text or overlay
2620properties that control the height of the corresponding display row. 2620properties that control the height of the corresponding display row.
2621 2621
2622If the line-height property value is 0, the newline does not 2622If the line-height property value is t, the newline does not
2623contribute to the height of the display row; instead the height of the 2623contribute to the height of the display row; instead the height of the
2624newline glyph is reduced. Also, a line-spacing property on this 2624newline glyph is reduced. Also, a line-spacing property on this
2625newline is ignored. This can be used to tile small images or image 2625newline is ignored. This can be used to tile small images or image
@@ -2633,10 +2633,19 @@ If the line-height property value is a float, the minimum line height
2633is calculated by multiplying the default frame line height by the 2633is calculated by multiplying the default frame line height by the
2634given value. 2634given value.
2635 2635
2636If the line-height property value is a cons (RATIO . FACE), the 2636If the line-height property value is a cons (FACE . RATIO), the
2637minimum line height is calculated as RATIO * height of named FACE. 2637minimum line height is calculated as RATIO * height of named FACE.
2638RATIO is int or float. If FACE is t, it specifies the current face. 2638RATIO is int or float. If FACE is t, it specifies the current face.
2639 2639
2640If the line-height property value is a cons (nil . RATIO), the line
2641height is calculated as RATIO * actual height of the line's contents.
2642
2643If the line-height value is a cons (HEIGHT . TOTAL), HEIGHT specifies
2644the line height as described above, while TOTAL is any of the forms
2645described above and specifies the total height of the line, causing a
2646varying number of pixels to be inserted after the line to make it line
2647exactly that many pixels high.
2648
2640If the line-spacing property value is an positive integer, the value 2649If the line-spacing property value is an positive integer, the value
2641is used as additional pixels to insert after the display line; this 2650is used as additional pixels to insert after the display line; this
2642overrides the default frame line-spacing and any buffer local value of 2651overrides the default frame line-spacing and any buffer local value of
@@ -2645,11 +2654,6 @@ the line-spacing variable.
2645If the line-spacing property may be a float or cons, the line spacing 2654If the line-spacing property may be a float or cons, the line spacing
2646is calculated as specified above for the line-height property. 2655is calculated as specified above for the line-height property.
2647 2656
2648If the line-spacing value is a cons (total . SPACING) where SPACING is
2649any of the forms described above, the value of SPACING is used as the
2650total height of the line, i.e. a varying number of pixels are inserted
2651after each line to make each line exactly that many pixels high.
2652
2653** The buffer local line-spacing variable may now have a float value, 2657** The buffer local line-spacing variable may now have a float value,
2654which is used as a height relative to the default frame line height. 2658which is used as a height relative to the default frame line height.
2655 2659