emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Several suggestions for image support


From: Kim F. Storm
Subject: Re: Several suggestions for image support
Date: 30 Apr 2004 03:07:45 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

David Kastrup <address@hidden> writes:

> Anyway, it would be nice if one could specify this relative to a
> particular face.  Something like
>

I implemented this proposal, with a few changes:

 '(line-height . (1.0 . small-face))
 '(line-height . (1.2 . t))  ;; means the current face
 '(line-height . (1.2 . nil)) ;; same as the following
 '(line-height . 1.2) ;; relative to default

The same values can be specified for the line-spacing property.

In addition, the line-spacing property value may be negative, in which
case the abs value is used as a total line height (so extra pixels are
optionally inserted after the line to make its height the specified
value, e.g.  the following are equivalent when the default face is used:

        0.5  -1.5

But if the default line height is, say 12 pixels, and the current line
is 10 pixels, then the line-spacing value of 0.5 adds 6 pixels to the
height (resulting in a height of 16 pixels), while -1.5 adds 8 pixels
giving a total height of 18 pixels = 1.5 x 12.

Can we close this issue now ?

--
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]