FileDocCategorySizeDatePackage
ShowFonts.javaAPI DocExample460Mon May 01 14:42:02 BST 2000None

ShowFonts

public class ShowFonts extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Font[] fonts;
    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(  );
    }