The following code snippet returns all installed fonts.

  GraphicsEnvironment g = GraphicsEnvironment.getLocalGraphicsEnvironment();
  String fonts[] = g.getAvailableFontFamilyNames();
  for (int i=0; i < fonts.length; i++) {
    System.out.println(fonts[i]);
  }