This Java tip demostrates how to prepare a list of all the available font families. A family may be described as a group of all the fonts with a similar or related typographic design. For example, the font faces in the family Lucida Sans Typewriter might be Lucida Sans Typewriter Bold, and Lucida Sans Typewriter Regular. For developer information J2SE 1.4 only supports True Type fonts.

  // Get names of all the font families
    GraphicsEnvironment environment = 
    String fontNames[] = environment.getAvailableFontFamilyNames();
    // A for loop for Iterating through all the font family names
    for (int i=0; i<fontNames.length; i++) {


        // Aria
        // Comic Sans MS
        // Verdana
        // ...