[5745] in java-interest

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

Re: Fonts...

daemon@ATHENA.MIT.EDU (Arthur A. van Hoff)
Sun Feb 25 19:04:38 1996

From: avh@netcom.com (Arthur A. van Hoff)
To: demaagd@cs.hope.edu (Dave DeMaagd)
Date: Sat, 24 Feb 1996 10:29:30 -0800 (PST)
Cc: java-interest@java.sun.com
In-Reply-To: <01BB02A4.EE0C5BA0@freenet.macatawa.org> from "Dave DeMaagd" at Feb 24, 96 10:42:09 am


Hi Dave,

> Who can tell me what fonts are in the java.awt.Font, and where I can get others...

You can get a list of available fonts by calling:

	String fonts[] = getToolkit().getFontList();

There are a couple standard fonts. The intention was that you 
can also access platform specific fonts, in that case you would
have to specify a property that maps the symbolic name to the
platform specific name. I don't think this is implemented 
correctly though.

Have fun,

	Arthur van Hoff


Suite 3, 345 California Ave, Palo Alto, CA 94306, 
415-328 JAVA (work), 415-328 5283 (direct), avh@netcom.com
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

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