Java 1.0 implementations are guaranteed to have the fonts Helvetica, Courier, TimesRoman, and Symbol or some reasonable facsimile thereof.

These names are deprecated in Java 1.1. In Java 1.1 you should use SansSerif, Serif, and Mono instead which will be mapped to an appropriate font like Helvetica, Times, or Courier.

Whether fonts installed on the client are available to Java is implementation dependent. You can get a String array of the names of the available fonts by calling the getFontList() method from java.awt.Toolkit. For example,

String[] fonts = Toolkit.getDefaultToolkit().getFontList()

Posted in: Java

Related FAQ's

Marius Ion ANGEL HOT SOFT LLC (800) 316-7677