title: Custom Font in Android renders differently in different APIs
body: <p>I am using a custom .ttf font in my android app.  I load it the usual way:</p>
  
  <pre><code>myTypeface = Typeface.createFromAsset( getAssets(), "myTypeface.ttf");
  </code></pre>
  
  <p>then I assign my typeface within my activity... pretty straightforward stuff:</p>
  
  <pre><code>TextView tv = (TextView) findViewById(R.id.sample_text);
  tv.setTextSize(12);
  tv.setTypeface(App.myTypeface);
  </code></pre>
  
  <p>The problem I'm running into is that on some devices using later APIs (I've specifically noticed it in an emulator for the Asus Transformer), the text looks slightly bolder, less uniform in width, and more jumbled in vertical alignment. By that last part I mean that some characters are placed vertically a bit higher or lower than others, giving a little bit of a roller-coaster feel to the text.</p>
  
  <p>Consider the screen shots below</p>
  
  <p>This is text rendered on an emulator with the same resolution and dpi as a Transformer, but using Google API level 8.</p>
  
  <p><img src="https://i.stack.imgur.com/dMrFZ.png" alt="i45.tinypic.com/142toud.png"></p>
  
  <p>Looks pretty standard, right?</p>
  
  <p>Now consider the text rendered in an emulator with the same resolution and dpi, but using Google API level 15:</p>
  
  <p><img src="https://i.stack.imgur.com/H0xRl.png" alt="i47.tinypic.com/24zhekn.png"></p>
  
  <p>At first the text may look similar, though you might notice it seems a bit bolder. However, look at the "c" in "quick". You will notice that it sits lower, and is taller, than the "c" in the first rendering. You will also notice that if you look at the bottom of the characters in the word "quick", they are not aligned on the bottom.</p>
  
  <p>These issues may seem small, but on screens with lots of text, it starts to look really unprofessional.</p>
  
  <p>Anybody seen this, or have an explanation?  I'd love to make the text look uniform in later APIs.</p>
  
  <p>Thanks so much for your time!</p>