title: Android: measureText() Return Pixels Based on Scaled Pixels
body: <p>So I use Paint's measureText() method to measure the width of a segment of text, but I wanted to measure text based on a certain text size. Say I wanted to get the width of a text segment that will be 20 scaled pixels when it occupies a certain TextView. I tried the following:</p>
  
  <pre><code>Paint paint = new Paint();
  paint.setTextSize(20);
  paint.measureText("sample text");
  </code></pre>
  
  <p>However, it does not seem to be working. I believe it is returning a width with respect to a smaller text size. I feel like I'm missing something that will make me slap myself in the face and yell herp derp.</p>