title: How to re-size the text generated by Barbecue API?
body: <p>I am trying to generate a barcode using the Barbecue API. The problem i am facing is that while i try to re-size the barcode the code in textual form which is printed below the barcode remains the same size. I need to decrease its side also. I have tried the following code :</p>
  
  <p>Part 1:Original Size Barcode</p>
  
  <pre><code>Barcode b = BarcodeFactory.create2of7("4561");
  b.setBarHeight(5);
  b.setBarWidth(1);
  PrinterJob job = PrinterJob.getPrinterJob();
  job.setPrintable(b);
  if (job.printDialog())
  {
          job.print();
  }
  </code></pre>
  
  <p>Part 2: Code for resizing</p>
  
  <pre><code>Barcode b = BarcodeFactory.create2of7("4561");
  b.setBarHeight(5);
  b.setBarWidth(1);
  PrinterJob job = PrinterJob.getPrinterJob();
  job.setPrintable(b);
  if (job.printDialog())
  {
  job.print();
  }
  </code></pre>
  
  <p>Below is the output image of the barcode:</p>
  
  <p><img src="https://i.stack.imgur.com/mIzZ2.png" alt="Output of both the parts"></p>
  
  <p>As you can see the code remains the same size. How can i decrease its size? Please help me out.</p>
  
  <p>Thanks.</p>