I wish to print the content of a JTextArea. I know I can do this with textarea.print().
However, I wish to print in a different font, font size and orientation from that of the JTextArea itself. I have been able to change the orientation by setting print attributes
PrintRequestAttributeSet printAttributes =
new javax.print.attribute.HashPrintRequestAttributeSet ();
printAttributes.add(javax.print.attribute.standard .OrientationRequested.LANDSCAPE);
and then using the textarea.print() method that allows me to set attributes. However, I haven't found any way to set the font and font size. Any Ideas?