emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set-frame-size should respect line-spacing!?


From: Eli Zaretskii
Subject: Re: set-frame-size should respect line-spacing!?
Date: Sat, 12 Oct 2019 10:00:14 +0300

> From: Ingo Lohmar <address@hidden>
> Date: Fri, 11 Oct 2019 22:44:34 +0200
> 
> Since I tested with a minimal example, however, I did not realize before
> that there is another code path that directly uses the C function
> `set-frame-size', with the same effect: If line-spacing is > 0 in the
> frame, it is not accounted for, and the frame lacks a few pixels in
> height (number of lines * "line-spacing effect").
> 
> This appears to be a bug: If asked for a frame N lines tall, N lines (of
> default-font's character height plus the effect of line-spacing) should
> fit, right?

Not necessarily.  You didn't tell which command or API exhibits this
behavior, but in some cases we mean height in units of the frame's
canonical character height, ion which case it doesn't include any
effects like line-spacing etc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]