From: Matthias Meulien <meulien@club.lemonde.fr>
Subject: Frame size in specified font
Date: 14 Sep 2002 12:40:17 +0200 [thread overview]
Message-ID: <m2r8fwq2ge.fsf@clarinde.localdomain> (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
reply other threads:[~2002-09-14 10:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r8fwq2ge.fsf@clarinde.localdomain \
--to=meulien@club.lemonde.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.