title: Paint.setAntiAlias(false) has no effect?
body: <p>I'm trying to draw text without antialiasing on a canvas in Android. The font I want to use is a file cour.ttf, which I've copied from my PC's C:\windows\fonts directory to my app's assets directory.</p>
  
  <p>I'm using this code:</p>
  
  <pre><code>paint.setColor(Color.BLACK);
  paint.setTypeface(Typeface.createFromAsset(getAssets(),"cour.ttf"));
  paint.setTextSize(20);
  paint.setAntiAlias(false);
  canvas.drawText("ABCDE abcde 12345 -+/#.",100,100,paint);
  </code></pre>
  
  <p>The setAntiAlias function doesn't appear to have any effect though.
  This picture shows my results:
  <a href="http://oi47.tinypic.com/35253wo.png" rel="nofollow">http://oi47.tinypic.com/35253wo.png</a></p>
  
  <p>The first line is a screenshot from the app, with antialiasing set to false.
  The second line is a screenshot from the app with antialiasing set to true.
  The third line is what I would expect to get, it's a screenshot made from my PC in notepad.exe with the same font.</p>
  
  <p>Am I doing something wrong or is this the expected output with antialiasing off? What I'm trying to achieve here is to have pixelated unblurred text.</p>
  
  <p>Any help is much appreciated.</p>
  
  <p>EDIT:
  I haven't quite found the solution yet, but I did find something interesting:
  adding <code>android:hardwareAccelerated="false"</code> to my Activity cleared it up quite a bit. Apperently this is turned on by default on Android 4. There's still a (very light) shadow visible that I'd like to remove though.</p>
  
  <p>Screenshot with hardware acceleration disabled:
  <a href="http://oi49.tinypic.com/aayypj.png" rel="nofollow">http://oi49.tinypic.com/aayypj.png</a></p>