What fonts does Java support?
Ans : 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 depenedent. 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().
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 depenedent.
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 depenedent. 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().