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 12:00:50 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200404230033.JAA10583@etlken.m17n.org> <200404290206.LAA27706@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 1083226188 5637 80.91.224.253 (29 Apr 2004 08:09:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2004 08:09:48 +0000 (UTC) Cc: dak@gnu.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 29 10:09:37 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 1BJ6bx-0000kU-00 for ; Thu, 29 Apr 2004 10:09:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJ6bx-0007s9-00 for ; Thu, 29 Apr 2004 10:09:37 +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 1BJ6aR-00017q-EU for emacs-devel@quimby.gnus.org; Thu, 29 Apr 2004 04:08:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BJ6Z6-0000tW-58 for emacs-devel@gnu.org; Thu, 29 Apr 2004 04:06:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BJ6YW-0000l2-QL for emacs-devel@gnu.org; Thu, 29 Apr 2004 04:06:36 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.30) id 1BJ6Th-00087I-BF for emacs-devel@gnu.org; Thu, 29 Apr 2004 04:01:05 -0400 Original-Received: (qmail 84830 invoked from network); 29 Apr 2004 08:01:04 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 29 Apr 2004 08:01:04 -0000 Original-To: Kenichi Handa In-Reply-To: <200404290206.LAA27706@etlken.m17n.org> Original-Lines: 37 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:22336 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22336 Kenichi Handa writes: > In article , storm@cua.dk (Kim F. Storm) writes: > > I have just installed changes to revert to the 21.3 functionality for > > newline height calculation, that is, use the current face font height > > (by default). > > > Then I added a new line-height property on the newline with the > > following values: > > > 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 > > If there's no line-height property, a height of a space > glyph (for SPC, TAB, NL) is decided by the height of a SPACE > glyph of a font. But, it seems that we can make their > height exactly what requested by a face. Then I think we > don't have to introduce line-height property. Each > line-height property value can be simulated as follows. > > nil -- do nothing > t -- add `default' face > 0 -- make a face of height 0 and add it > N -- make a face by :height N (but specifies it by 1/10 pt) and add it. > F -- make a face by :height F and add it This is possible, yes, but the main advantage of the line-height property is that you can put it on an entire region -- independent of the faces in that region -- and make the line spacing work independint of filling, untabitying etc. which may add/delete newlines (which will automatically inherit the line-height property). -- Kim F. Storm http://www.cua.dk