diff options
| author | Kim F. Storm | 2004-04-29 22:41:05 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-04-29 22:41:05 +0000 |
| commit | e71caa4ed9bcaeae6e3cf6396c9f90c219e4f75a (patch) | |
| tree | 333cfd90d8f308379f0db4dcf1956ce039957e7d | |
| parent | a9e5c93275d3d9ebbd89da4efd89d9e31ec3cf4e (diff) | |
| download | emacs-e71caa4ed9bcaeae6e3cf6396c9f90c219e4f75a.tar.gz emacs-e71caa4ed9bcaeae6e3cf6396c9f90c219e4f75a.zip | |
*** empty log message ***
| -rw-r--r-- | etc/NEWS | 31 | ||||
| -rw-r--r-- | src/ChangeLog | 23 |
2 files changed, 42 insertions, 12 deletions
| @@ -2013,20 +2013,27 @@ specifies the minimum line height in pixels. If necessary, the line | |||
| 2013 | height it increased by increasing the line's ascent. | 2013 | height it increased by increasing the line's ascent. |
| 2014 | 2014 | ||
| 2015 | If the line-height property value is a float, the minimum line height | 2015 | If the line-height property value is a float, the minimum line height |
| 2016 | is calculated by multiplying the height of the current face font by | 2016 | is calculated by multiplying the default frame line height by the |
| 2017 | the given value. | 2017 | given value. |
| 2018 | 2018 | ||
| 2019 | If the line-height property value is t, the minimum line height is | 2019 | If the line-height property value is a cons (RATIO . FACE), the |
| 2020 | the height of the default frame font. | 2020 | minimum line height is calculated as RATIO * height of named FACE. |
| 2021 | RATIO is int or float. If FACE is t, it specifies the current face. | ||
| 2021 | 2022 | ||
| 2022 | If the line-spacing property value is an integer, the value is used as | 2023 | If the line-spacing property value is an positive integer, the value |
| 2023 | additional space to put after the display line; this overrides the | 2024 | is used as additional pixels to insert after the display line; this |
| 2024 | default frame line-spacing and any buffer local value of the | 2025 | overrides the default frame line-spacing and any buffer local value of |
| 2025 | line-spacing variable. | 2026 | the line-spacing variable. |
| 2026 | 2027 | ||
| 2027 | If the line-spacing property value is a float, the value is multiplied | 2028 | If the value is a negative integer, the absolute value is used as the |
| 2028 | by the current height of the display row to determine the additional | 2029 | total height of the line, i.e. a varying number of pixels are |
| 2029 | space to put after the display line. | 2030 | inserted after each line to make each line exactly that many pixels high. |
| 2031 | |||
| 2032 | If the line-spacing property may be a float or cons, the line spacing | ||
| 2033 | is calculated as specified above for the line-height property. | ||
| 2034 | |||
| 2035 | ** The buffer local line-spacing variable may now have a float value, | ||
| 2036 | which is used as a height relative to the default frame line height. | ||
| 2030 | 2037 | ||
| 2031 | ** Enhancements to stretch display properties | 2038 | ** Enhancements to stretch display properties |
| 2032 | 2039 | ||
| @@ -3417,7 +3424,7 @@ using the text properties (esp. the face) of the prompt string. | |||
| 3417 | running under X. | 3424 | running under X. |
| 3418 | 3425 | ||
| 3419 | ** Arguments for remove-overlays are now optional, so that you can remove | 3426 | ** Arguments for remove-overlays are now optional, so that you can remove |
| 3420 | all overlays in the buffer by just calling (remove-overlay). | 3427 | all overlays in the buffer by just calling (remove-overlay). |
| 3421 | 3428 | ||
| 3422 | ** New packages: | 3429 | ** New packages: |
| 3423 | 3430 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 9be37a38531..77f9fb25ab1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,26 @@ | |||
| 1 | 2004-04-30 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * buffer.c (syms_of_buffer) <line-spacing>: Allow float value. | ||
| 4 | |||
| 5 | * dispextern.h (struct it): Remove member use_default_face. | ||
| 6 | Add members override_ascent, override_descent, override_boff. | ||
| 7 | |||
| 8 | * xdisp.c (init_iterator): Handle line-spacing float value. | ||
| 9 | Initialize override_ascent member. | ||
| 10 | (append_space_for_newline): Reset override_ascent. | ||
| 11 | Remove use_default_face. | ||
| 12 | (calc_line_height_property): New function to calculate value of | ||
| 13 | line-height and line-spacing properties. Look at overlays, too. | ||
| 14 | Set override_ascent, override_descent, override_boff members when | ||
| 15 | using another face than the current face. Float values are now | ||
| 16 | relative to the frame default font, by default; accept a cons | ||
| 17 | of ratio and face name to specify value relative to a specific face. | ||
| 18 | (x_produce_glyphs): Use calc_line_height_property. | ||
| 19 | Use override_ascent etc. when set to handle different face heights. | ||
| 20 | A negative line-spacing property value is interpreted as a total | ||
| 21 | line height, rather than inter-line spacing. | ||
| 22 | (note_mouse_highlight): Allocate room for 40 overlays initially. | ||
| 23 | |||
| 1 | 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca> | 24 | 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 25 | ||
| 3 | * data.c (Fsubr_name): New fun. | 26 | * data.c (Fsubr_name): New fun. |