// font name vs family vs fontname // defining a Font Font f = new Font( "Courier", Font.ITALIC, 18 ); // prints "Courier", what you originally asked for out.println( f.getName() ); // prints "monospaced", the family you actually got out.println( f.getFamily() ); // prints "monospaced.italic", includes style you got out.println( f.getFontName());