title: How to change the font size while printing in android?
body: <p>I am sending the text to the bluetooth printer via my android cell. Both the <strong>printer and my device are connected via the bluetooth.</strong>
  It's Working fine and I am getting the desired text on the paper.</p>
  
  <p><strong>My question is:</strong></p>
  
  <p>The printer is taking the default <em><code>font size</code></em> of the text. I want to change the font size of the text which is to be printed.</p>
  
  <p>How can i achieve this??</p>
  
  <p>Here is my code of printing the text after the bloutooth connectivity:</p>
  
  <pre><code>private void connect_print(BluetoothDevice bluetoothDevicess)  {
      // some code
      printData();
      // some code
  }
  </code></pre>
  
  <p><strong>The printData() method</strong></p>
  
  <pre><code>private void printData() {
      // TODO Auto-generated method stub
      String str = new String("This is the text sending to the printer");
      String newline = "\n";
      try {
          out.write(str.getBytes(),0,str.getBytes().length);
          Log.i("Log", "One line printed");
      } catch (IOException e) {
          Toast.makeText(BluetoothDemo.this, "catch 1", Toast.LENGTH_LONG).show();
          e.printStackTrace();
          Log.i("Log", "unable to write ");
          flagCheck = false;
      }
      try {
          out.write(newline.getBytes(),0,newline.getBytes().length);
      } catch (IOException e) {        
          Log.i("Log", "Unable to write the new line::");
          e.printStackTrace();
          flagCheck = false;
      }
      flagCheck = true;
  }
  </code></pre>
  
  <p>I want to change the <code>font size</code> and the <code>font style</code> of the text which is sending to the printer to print.
  Please help me to achieve this.
  If anyone can suggest any link then too i will appreciate him/her. 
  <strong>Help me to find the solution to this problem</strong></p>