all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Frame size in specified font
@ 2002-09-14 10:40 Matthias Meulien
  0 siblings, 0 replies; only message in thread
From: Matthias Meulien @ 2002-09-14 10:40 UTC (permalink / raw)


Hi,

How to know the size of a frame in line and columns of a SPECIFIED
font ? 

Only idea : create a new frame using the specified font and with the
same pixel dimension ; call frame-size then delete the new frame...

It would be useful in fixing the following problems.

First, in the calendar/diary, the modeline stuff isn't visually
satisfying when the `mode-line' face use a font different from the
frame font: the function `calendar-set-mode-line' use `frame-width'
which return the width of the (current) frame measured in columns of
its font characters. The value should depend of the `mode-line' face
font.

Note for the `calendar.el' maintainer. 
Why `update-calendar-mode-line' don't call `calendar-set-mode-line' ?

Second, look at the speedbar frame creation function. Speedbar's frame
height is calculated from the associated frame height using
`frame-height'. So if `speedbar-frame-parameters' specify a new font,
the speedbar frame parameter `height' won't be initialized to the
height (pixel speaking) of the frame speedbar is attached !

Sorry for my poor English.
-- 
Matthias

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-14 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-14 10:40 Frame size in specified font Matthias Meulien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.