public static String[] GetAvailableFontNames() {
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    Font[] fonts = ge.getAllFonts();
    String[] FontName = new String[fonts.length];
    for ( int i = 0; i < fonts.length; i++ ) {
      FontName[i] = fonts[i].getFontName();
    }
    return FontName;
  }
@Test
  public void testGetAvailableFontNames() {
    assertTrue( Const.GetAvailableFontNames().length > 0 );
  }