From xemacs-m  Mon Mar 17 15:07:15 1997
Received: from mailbox2.ucsd.edu (mailbox2.ucsd.edu [132.239.1.54])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA14976
	for <xemacs-beta@xemacs.org>; Mon, 17 Mar 1997 15:07:14 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by mailbox2.ucsd.edu (8.8.5/8.6.9) with SMTP id NAA26505 for <xemacs-beta@xemacs.org>; Mon, 17 Mar 1997 13:07:14 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id NAA14421; Mon, 17 Mar 1997 13:09:14 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: xemacs-beta@xemacs.org
Subject: Re: frame-char-height ?
References: <199703171951.LAA01958@newman>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
From: David Moore <dmoore@ucsd.edu>
Date: 17 Mar 1997 13:09:14 -0800
In-Reply-To: "William M. Perry"'s message of Mon, 17 Mar 1997 11:51:02 -0800
Message-ID: <rv7mj61b0l.fsf@sdnp5.ucsd.edu>
Lines: 22
X-Mailer: Gnus v5.4.24/XEmacs 19.15

"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?

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.

