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: David Kastrup
Subject: Re: Several suggestions for image support
Date: 29 Apr 2004 00:52:30 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

address@hidden (Kim F. Storm) writes:

> David Kastrup <address@hidden> writes:
> 
> > The line distance is determined differently: it is constant for a
> > frame unless that would cause overlapping rows with the actual glyph
> > dimensions, or unless we change it with special properties on the
> > newline characters.  Those special properties can also be put on space
> > and other characters but have no effect there.
> > 
> > At least that's how I understood the last proposals.  It means that if
> > one wants to have a paragraph with smaller line distance, one can
> > explicitly cover it with an appropriate property.
> 
> With my latest changes, emacs has two properties on newlines:
> 
> * line-height which gives the minimum line height;
>   default minimum line height is given by the height of the face
>   of the newline character.
> 
>   The actual line height is determined by the text on the line;
>   if some glyphs are taller than the minimum line height, the
>   actual line height is increased.

That's what I meant with "unless that would cause overlapping rows".

> * line-spacing which adds additional pixels between this line and the
>   next line.  Default is the value of the line-spacing variable
>   (usually 0).
> 
> So there is still no "fixed line-distance" concept in emacs, as
> lines can always be taller than the ordinary line-distance.
> 
> BTW, the line-height and line-spacing properties are currently only
> supported as text-properties; should this be extended to check for
> overlays too?

Yes.  I'll need this eventually in preview-latex for sliced images,
and preview-latex works exclusively with overlays (it never touches
the text itself).

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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