This Program will helps to know which fonts are available in our system
import java.awt.*; class Fonts { public static void main(String args[]) { //get the local graphics environment info into object ge GraphicsEnvironment ge=GraphicsEnvironment.getLocalGraphicsEnvironment(); String fonts[]=ge.getAvailableFontFamilyNames(); System.out.println("Available fonts on this system:"); for(int i=0; i < fonts.length;i++) System.out.println(fonts[i]); } }