From xemacs-m  Mon Mar 17 15:48:18 1997
Received: from newman (root@newman.aventail.com [38.225.141.10])
	by xemacs.org (8.8.5/8.8.5) with SMTP id PAA18347
	for <xemacs-beta@xemacs.org>; Mon, 17 Mar 1997 15:48:17 -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 NAA02730; Mon, 17 Mar 1997 13:45:44 -0800
Date: Mon, 17 Mar 1997 13:45:44 -0800
Message-Id: <199703172145.NAA02730@newman>
From: "William M. Perry" <wmperry@aventail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: David Moore <dmoore@ucsd.edu>
Cc: xemacs-beta@xemacs.org
Subject: Re: frame-char-height ?
In-Reply-To: <rv7mj61b0l.fsf@sdnp5.ucsd.edu>
References: <199703171951.LAA01958@newman>
	<rv7mj61b0l.fsf@sdnp5.ucsd.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;

David Moore writes:
>"William M. Perry" <wmperry@aventail.com> writes:
>
>> Anyone ever bothered to implement frame-char-height under XEmacs?  This
>> seems to be sufficient.
>> 
>> (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.
>
>Uh, but what do you use these for?  XEmacs doesn't live in the world of
>non-proportional fonts or a single font per buffer.  What should
>frame-char-width return, when an `i' is 3 pixels and a `w' is 12?

  Whatever font-width returns.  This is basically a wrapper around a
function that is _already_ there, and probably broken.  But it makes things
more compatible with Emacs.  Someone used it in some emacs-w3 code they
contributed, so I threw those into the w3 tree.

-Bill P.

