diff options
| author | Kim F. Storm | 2005-01-05 16:36:19 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-01-05 16:36:19 +0000 |
| commit | 678d2655f946c36557bfd23e68aa65a57b9dead7 (patch) | |
| tree | 1157999d8569fc8c4e373b36fb32c5f149767d31 | |
| parent | bf6e87cb553f51f9b0fb73c61751f1171f10f565 (diff) | |
| download | emacs-678d2655f946c36557bfd23e68aa65a57b9dead7.tar.gz emacs-678d2655f946c36557bfd23e68aa65a57b9dead7.zip | |
Fix line-height and line-spacing docs.
| -rw-r--r-- | etc/NEWS | 20 |
1 files changed, 12 insertions, 8 deletions
| @@ -1830,7 +1830,7 @@ c-require-final-newline. That is a list of modes, and only those | |||
| 1830 | modes set require-final-newline. By default that's C, C++ and | 1830 | modes set require-final-newline. By default that's C, C++ and |
| 1831 | Objective-C. | 1831 | Objective-C. |
| 1832 | 1832 | ||
| 1833 | The specified modes set require-final-newline based on | 1833 | The specified modes set require-final-newline based on |
| 1834 | mode-require-final-newline, as usual. | 1834 | mode-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). | |||
| 2619 | A newline may now have line-height and line-spacing text or overlay | 2619 | A newline may now have line-height and line-spacing text or overlay |
| 2620 | properties that control the height of the corresponding display row. | 2620 | properties that control the height of the corresponding display row. |
| 2621 | 2621 | ||
| 2622 | If the line-height property value is 0, the newline does not | 2622 | If the line-height property value is t, the newline does not |
| 2623 | contribute to the height of the display row; instead the height of the | 2623 | contribute to the height of the display row; instead the height of the |
| 2624 | newline glyph is reduced. Also, a line-spacing property on this | 2624 | newline glyph is reduced. Also, a line-spacing property on this |
| 2625 | newline is ignored. This can be used to tile small images or image | 2625 | newline 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 | |||
| 2633 | is calculated by multiplying the default frame line height by the | 2633 | is calculated by multiplying the default frame line height by the |
| 2634 | given value. | 2634 | given value. |
| 2635 | 2635 | ||
| 2636 | If the line-height property value is a cons (RATIO . FACE), the | 2636 | If the line-height property value is a cons (FACE . RATIO), the |
| 2637 | minimum line height is calculated as RATIO * height of named FACE. | 2637 | minimum line height is calculated as RATIO * height of named FACE. |
| 2638 | RATIO is int or float. If FACE is t, it specifies the current face. | 2638 | RATIO is int or float. If FACE is t, it specifies the current face. |
| 2639 | 2639 | ||
| 2640 | If the line-height property value is a cons (nil . RATIO), the line | ||
| 2641 | height is calculated as RATIO * actual height of the line's contents. | ||
| 2642 | |||
| 2643 | If the line-height value is a cons (HEIGHT . TOTAL), HEIGHT specifies | ||
| 2644 | the line height as described above, while TOTAL is any of the forms | ||
| 2645 | described above and specifies the total height of the line, causing a | ||
| 2646 | varying number of pixels to be inserted after the line to make it line | ||
| 2647 | exactly that many pixels high. | ||
| 2648 | |||
| 2640 | If the line-spacing property value is an positive integer, the value | 2649 | If the line-spacing property value is an positive integer, the value |
| 2641 | is used as additional pixels to insert after the display line; this | 2650 | is used as additional pixels to insert after the display line; this |
| 2642 | overrides the default frame line-spacing and any buffer local value of | 2651 | overrides the default frame line-spacing and any buffer local value of |
| @@ -2645,11 +2654,6 @@ the line-spacing variable. | |||
| 2645 | If the line-spacing property may be a float or cons, the line spacing | 2654 | If the line-spacing property may be a float or cons, the line spacing |
| 2646 | is calculated as specified above for the line-height property. | 2655 | is calculated as specified above for the line-height property. |
| 2647 | 2656 | ||
| 2648 | If the line-spacing value is a cons (total . SPACING) where SPACING is | ||
| 2649 | any of the forms described above, the value of SPACING is used as the | ||
| 2650 | total height of the line, i.e. a varying number of pixels are inserted | ||
| 2651 | after 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, |
| 2654 | which is used as a height relative to the default frame line height. | 2658 | which is used as a height relative to the default frame line height. |
| 2655 | 2659 | ||