title: Printing with PHP - Different font sizes?
body: <p>I work at a school and am writing a wizard-style front end for our helpdesk. Students will grab the tablet, fill in their name, pick the issue they're having and a ticket will be opened on the system. </p>
  
  <p>We have a receipt printer shared at the desk and using PHP's printer_* functions, I'm able to print out simple receipts using RAW mode. The student will take the receipt back to class to show the teacher as proof they were with us. So far my code works great:</p>
  
  <pre><code>$handle = printer_open("EPSON TM-T88IV Receipt"); // The name of our printer on Windows
  printer_set_option($handle, PRINTER_PAPER_FORMAT, PRINTER_FORMAT_CUSTOM); // Custom paper format
  printer_set_option($handle, PRINTER_PAPER_WIDTH, "80"); // 80mm wide
  printer_set_option($handle, PRINTER_MODE, "RAW"); // And raw printing mode
  printer_write($handle, "Hello world\nPrinting is fun\nGoodbye"); // Sample text
  printer_close($handle);
  </code></pre>
  
  <p>But what I'd like to know is, how do I do fancy formatting, such as a larger font size, bold text or possibly even a logo? (the latter, not so important, it's just a wishlist thing)</p>
  
  <p>I see you can set the modes to text and EMF (Enhanced Metafile Format?), but can't seem to find much info on generating EMF from PHP. I've seen escape codes on a few sites, but these seem to be printer specific and not human readable.</p>
  
  <p>Any suggestions?</p>