title: Java - Printing to a receipt printer
body: <p>I need to print a few lines to a receipt printer (Star TSP100). I can write the text to a file and use this line to print:</p>
  
  <pre><code>Desktop.getDesktop().print(new File("test.txt"));
  </code></pre>
  
  <p>The problem is that the text size when I do this is very tiny. Since the file is plain text, I don't know how to adjust the size.</p>
  
  <p>What's the easiest way to make this text readable?</p>