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: 29 Apr 2004 11:51:40 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083226248 5757 80.91.224.253 (29 Apr 2004 08:10:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2004 08:10:48 +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 10:10: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 1BJ6d1-0000ni-00 for ; Thu, 29 Apr 2004 10:10: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 1BJ6d0-0007vx-00 for ; Thu, 29 Apr 2004 10:10: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 1BJ6Rc-0007Ym-GR for emacs-devel@quimby.gnus.org; Thu, 29 Apr 2004 03:58:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BJ6Qn-0007Pj-HX for emacs-devel@gnu.org; Thu, 29 Apr 2004 03:58:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BJ6QD-0007Gv-Sb for emacs-devel@gnu.org; Thu, 29 Apr 2004 03:58:02 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.30) id 1BJ6Kq-0006c0-C7 for emacs-devel@gnu.org; Thu, 29 Apr 2004 03:51:56 -0400 Original-Received: (qmail 69074 invoked from network); 29 Apr 2004 07:51:55 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 29 Apr 2004 07:51:55 -0000 Original-To: David Kastrup In-Reply-To: Original-Lines: 47 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:22338 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22338 David Kastrup writes: > > We could accomplish this by setting the line-height property to the > > pixel height of a specific face *) The effect of this would be that > > newlines would have the height of that face, rather than the current > > font. > > Is there a particular reason to have the unit of the line-height be in > pixels? We specify face dimensions in units of tenths of a point > elsewhere. Not that I am convinced that is the best way, though. The main reason is that the display engine counts in pixels -- so that's the value that is "needed" there; of course, we could convert points to pixels (somehow, I'm not a `face expert'). > > Anyway, it would be nice if one could specify this relative to a > particular face. Something like But except for the "dynamic vs. static" properties here, that's the same effect you get with my simpler proposal: > > '(line-height . (1.0 . small-face)) `(line-height . ,(face-char-height 'small-face)) > > '(line-height . (1.2 . nil)) ;; means the current face '(line-height . 1.2) > '(line-height . (1.2 . default)) ;; same as the following > '(line-height . 1.2) ;; relative to default `(line-height . ,(round (* 1.2 (face-char-height 'default)))) > > Something like that. If somebody has a better idea to specify > "current face", that would be nice. Of course it can be done as you propose (I planned to do that myself), but it makes the redisplay engine more complex -- and I doubt the added flexibility/complexity is really needed. -- Kim F. Storm http://www.cua.dk