dovrebbe essere così
GraphicsEnvironment GE = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] fonts = GE.getAvailableFontFamilyNames();