// Get all font family names
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String fontNames[] = ge.getAvailableFontFamilyNames();

// Iterate the font family names
for (int i=0; i<fontNames.length; i++) {
// Aria
// Comic Sans MS
// Verdana
// ...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.