import java.awt.*;
public class LsFonts {
public static void main(String[] args) {
// Get all font family names
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String fontNames[] = ge.getAvailableFontFamilyNames();
for (String name : fontNames) {
System.out.println(name);
}
}
}
public class LsFonts {
public static void main(String[] args) {
// Get all font family names
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String fontNames[] = ge.getAvailableFontFamilyNames();
for (String name : fontNames) {
System.out.println(name);
}
}
}