I'm trying to print contents of notepad file. For this I have filled the JTextArea with the contents of File. The font type of both JtextArea and notepad file is Courier New and Size Font Size is 14.I am passing the JTextArea to the printComponent method. My problem is that when I try to print the notepad files which I receive from other system automatically the font size issmallest(probably 2 inch). But now I make the same file manully and try to print then there is no problem. I can not understand why there is font-descripancy.
One more thing If I use Times New Roman, there is no problem. But I can't use that because it misalign the contents of the auto-generated file.