From xemacs-m  Tue Mar 18 16:26:54 1997
Received: from newman (root@newman.aventail.com [38.225.141.10])
	by xemacs.org (8.8.5/8.8.5) with SMTP id QAA15739
	for <xemacs-beta@xemacs.org>; Tue, 18 Mar 1997 16:26:53 -0600 (CST)
Received: from kramer.in.aventail.com.aventail.com (wmperry@kramer [192.168.1.12]) by newman (8.6.12/8.6.9) with SMTP id OAA09629; Tue, 18 Mar 1997 14:24:20 -0800
Date: Tue, 18 Mar 1997 14:24:20 -0800
Message-Id: <199703182224.OAA09629@newman>
From: "William M. Perry" <wmperry@aventail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Valdis.Kletnieks@vt.edu
Cc: wmperry@aventail.com, xemacs-beta@xemacs.org
Subject: Re: frame-char-height ? 
In-Reply-To: <199703172013.PAA22374@black-ice.cc.vt.edu>
References: <199703171951.LAA01958@newman>
	<199703172013.PAA22374@black-ice.cc.vt.edu>
Errors-to: wmperry@aventail.com
Reply-to: wmperry@aventail.com
X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz
 x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA
 [WJopW_J.WY;

Valdis.Kletnieks@vt.edu writes:
>On Mon, 17 Mar 1997 11:51:02 PST, you said:
>> (defun frame-char-height (&optional locale)
>>   "Height in pixels of a line in the font in frame FRAME.
>> If FRAME is omitted, the selected frame is used.
>> For a terminal frame, the value is always 1."
>>   (font-height (face-font 'default locale)))
>> 
>> frame-char-width is similar.
>
>Umm.. I have to admit not being familiar with the semantics of this,
>but it *looks* a tad fishy to me.  'char-width' in particular may
>be a zoo if you're using a proportional-spaced font (which I believe
>isnt supported under GNUmacs).
>
>I'm also not sure what 'frame-char-height' is supposed to *tell* you,
>given that a frame may have a lot of different fonts in it, and possibly
>not have any text actually displayed in whatever the *default* font is...
>
>Or am I confoozled about what problem this function is intended to solve?

  It should return the default font's height or width.  The fact that this
is not very accurate is besides the point.  font-width is broken as it is,
but we still have it.

  This is only used in w3 to size windows to a certain pixel height, which
will work, since all that garbage doesn't know about multi-height lines
yet.  This is the single biggest lack in XEmacs right now - lack of
pixel-based crap for filling and window sizing, etc.

-Bill P.

