emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Implement functions for measuring fonts and max chars per li


From: Perry E. Metzger
Subject: Re: [PATCH] Implement functions for measuring fonts and max chars per line
Date: Sat, 17 Jan 2015 17:21:22 -0500

On Sat, 17 Jan 2015 22:41:55 +0200 Eli Zaretskii <address@hidden> wrote:
> > Date: Sat, 17 Jan 2015 15:38:39 -0500
> > From: "Perry E. Metzger" <address@hidden>
> > Cc: address@hidden
> > 
> > This all brings to mind: is there a good way now to determine what
> > the maximum number of lines in a frame would be in a given font on
> > the user's display?
> 
> You mean window, not frame, right?

No, frame. I'd like to be able to set my default frame height to "full
height" for the display (filling the display from top to bottom) --
right now I do guesswork to do this, and my .emacs breaks when I
switch to a new display.

> See window-screen-lines, which I think does what you want.

I believe that says how many lines are in an emacs window, not in the
frame if it contains a single window, and either way, what I want is
to know "how high exactly, in lines, would the frame have to be in
order to fill the Y axis of the display fully".

I'm perhaps not explaining this well.

Perry
-- 
Perry E. Metzger                address@hidden



reply via email to

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