[2700] in java-interest

home help back first fref pref prev next nref lref last post

Re: FontMetrics

daemon@ATHENA.MIT.EDU (Jim Graham)
Tue Oct 10 23:48:21 1995

Date: Tue, 10 Oct 1995 16:16:24 -0700
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM, bc@futuretense.com


> A font's metrics is somewhat tedious in the pre-beta. Is there a reason not
> to have a font object return its FontMetrics?
> 
>         Font font = new Font(...);
>         FontMetrics fontMetrics = font.getFontMetrics();
> 
> Could I ask for this call to be added to the API?

Which output device would you want Font.getFontMetrics() to return the
metrics for?  In practice, printers and screens may have drastically
different metrics, and even different screens may use different fonts
or have different resolutions and thus different metrics.  Thus the
decision to have font metrics returned by the Component (actually the
Component's peer - which is an screen/device specific implementation
of that Component).

				...jim
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post