Java tutorial
import java.awt.Font; import java.awt.GraphicsEnvironment; public class MainClass { public static void main(String[] args) throws Exception { Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); for (int i = 0; i < fonts.length; i++) { System.out.print(fonts[i].getFontName() + " : "); System.out.print(fonts[i].getFamily() + " : "); System.out.print(fonts[i].getName()); System.out.println(); } } }