From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.help Subject: Frame size in specified font Date: 14 Sep 2002 12:40:17 +0200 Organization: ...!#$@~? Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032000376 11472 127.0.0.1 (14 Sep 2002 10:46:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 14 Sep 2002 10:46:16 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17qARK-0002yt-00 for ; Sat, 14 Sep 2002 12:46:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qARM-00072d-00; Sat, 14 Sep 2002 06:46:16 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!newsfeed.stueberl.de!teaser.fr!proxad.net!feeder2-1.proxad.net!news1-2.free.fr!not-for-mail Mail-Copies-To: never Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 29 Original-NNTP-Posting-Date: 14 Sep 2002 12:35:22 MEST Original-NNTP-Posting-Host: 62.147.135.34 Original-X-Trace: 1031999722 news1-2.free.fr 467 62.147.135.34 Original-X-Complaints-To: abuse@proxad.net Original-Xref: nntp.stanford.edu gnu.emacs.help:104910 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1465 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1465 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