From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Several suggestions for image support Date: 27 Apr 2004 11:30:54 +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 1083051173 1551 80.91.224.253 (27 Apr 2004 07:32:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2004 07:32:53 +0000 (UTC) Cc: David Kastrup , emacs-devel@gnu.org, rms@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 27 09:32:43 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 1BIN59-0007lw-00 for ; Tue, 27 Apr 2004 09:32:43 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIN59-0000w2-00 for ; Tue, 27 Apr 2004 09:32:43 +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 1BIN4Y-0001PJ-KI for emacs-devel@quimby.gnus.org; Tue, 27 Apr 2004 03:32:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIN4D-0001P7-Ss for emacs-devel@gnu.org; Tue, 27 Apr 2004 03:31:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIN3h-0001Lc-4V for emacs-devel@gnu.org; Tue, 27 Apr 2004 03:31:45 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.30) id 1BIN3g-0001LD-Jq for emacs-devel@gnu.org; Tue, 27 Apr 2004 03:31:12 -0400 Original-Received: (qmail 87012 invoked from network); 27 Apr 2004 07:31:10 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 27 Apr 2004 07:31:10 -0000 Original-To: Miles Bader In-Reply-To: Original-Lines: 45 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:22213 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22213 Miles Bader writes: > David Kastrup writes: > > > nil -> use height of current face (the default) > > > t -> use default face height (as minimum height) > > > 0 -> use (don't increase) actual line height > > > N (integer > 0) -> use N pixels (as minimum height) > > > F (float > 0.0) -> use F * current face font height > > > > Is 0 a special case of N (use 0 pixels as minimum height)? > > Sounds like it. Not exactly -- the 0 value is a little special in the sense that it _also_ tries to reposition the ascent/descent of the space glyph so that when the cursor is on that glyph, as much as possible of the cursor is visible. This is different from a value > 0, as that just gives a minimum height -- and if the space glyph is taller than that, clipping occurs. Maybe it should also try to reposition the cursor in this case; if so, 0 would indeed be just a special case of N > 0 and F > 0.0 > > Maybe the description would be more clear if phrased that way, e.g. -- > > N (integer) -> use N pixels (as minimum height); note that > 0 will give you exactly the actual line height > > > > F (float > 0.0) -> use F * current face font height > > > > If so, would it be the same as 0.0, too? > > I assume that the F case is really a minimum too (really that that the > display engine can't _not_ do that), so that sounds like it's true for > the same reasons as the N case. Well, it's not really true for the reasons just explained. Another issue is whether F should be relative the current face font or the frame default font? I chose current font, as it enables you to use default font when necessary, while the opposite isn't true. -- Kim F. Storm http://www.cua.dk