GNU bug report logs - #51821
29.0.50; Suggest add variable or frame parameter: line-height

Previous Next

Package: emacs;

Reported by: "Feng Shu" <tumashu <at> 163.com>

Date: Sat, 13 Nov 2021 23:30:03 UTC

Severity: wishlist

Found in version 29.0.50

Full log


Message #175 received at 51821 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: luangruo <at> yahoo.com, tumashu <at> 163.com, 51821 <at> debbugs.gnu.org
Subject: Re: bug#51821: 29.0.50; Suggest add variable or frame parameter:
 line-height
Date: Sat, 20 Nov 2021 12:15:55 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: tumashu <at> 163.com,  luangruo <at> yahoo.com,  51821 <at> debbugs.gnu.org
> Date: Sat, 20 Nov 2021 10:58:14 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Allow saying:
> >> 
> >> (defface separator-line
> >>   '((((type graphic) (background dark))
> >>      :pixel-height 1 :background "#505050")
> >
> > How is that different from :height?  It uses different units, but
> > that's not a problem for this use case, is it?
> 
> It's a way to say "don't scale this, ever", which was a problem here,
> wasn't it?  (And :height 0.1 doesn't give me a single pixel on this
> display -- we have no way to express that currently.)

No, float values are relative to the default face, which is not what
you want.  I meant ":height 1" or somesuch.  If that is not good
enough, the value of :height can be a function.




This bug report was last modified 3 years and 207 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.