From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Several suggestions for image support Date: 29 Apr 2004 00:52:30 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200404230033.JAA10583@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083193239 15234 80.91.224.253 (28 Apr 2004 23:00:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 23:00:39 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 29 01:00:31 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIy2Y-0002Yt-00 for ; Thu, 29 Apr 2004 01:00:30 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIy2Y-0006dF-00 for ; Thu, 29 Apr 2004 01:00:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIxz4-00063e-6w for emacs-devel@quimby.gnus.org; Wed, 28 Apr 2004 18:56:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIxwV-0005Od-TI for emacs-devel@gnu.org; Wed, 28 Apr 2004 18:54:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIxvX-0004xI-Ub for emacs-devel@gnu.org; Wed, 28 Apr 2004 18:53:49 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIxv3-0004UB-5Z for emacs-devel@gnu.org; Wed, 28 Apr 2004 18:52:45 -0400 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1BIxsf-0007rd-F6; Wed, 28 Apr 2004 18:50:17 -0400 Original-To: no-spam@cua.dk (Kim F. Storm) In-Reply-To: Original-Lines: 43 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22320 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22320 no-spam@cua.dk (Kim F. Storm) writes: > David Kastrup 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