[android-developers] Re: Text drawn by mPaint.drawText looks different with the default TextView?

2011-04-04 Thread skink


On Apr 4, 3:37 pm, mathcat scien...@gmail.com wrote:
 In a custom view extending View, I call mPaint.drawText in the onDraw
 method, with a new Paint object mPaint. But the text drawn looks
 different to the default TextView, the lines are thinner and not
 smooth(like rope bitten by some insects). I just want it to be the
 same look as TextView.How to do that? Sorry I`m not quite familiar
 with Android graphics

You can exterminate the insects with special weapon called
antyaliasing.

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Text drawn by mPaint.drawText looks different with the default TextView?

2011-04-04 Thread mathcat
Thank you skink!

But why the lines are thinner? how to make them the same as TextView?

On Apr 4, 9:41 pm, skink psk...@gmail.com wrote:
 On Apr 4, 3:37 pm, mathcat scien...@gmail.com wrote:

  In a custom view extending View, I call mPaint.drawText in the onDraw
  method, with a new Paint object mPaint. But the text drawn looks
  different to the default TextView, the lines are thinner and not
  smooth(like rope bitten by some insects). I just want it to be the
  same look as TextView.How to do that? Sorry I`m not quite familiar
  with Android graphics

 You can exterminate the insects with special weapon called
 antyaliasing.

 pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Text drawn by mPaint.drawText looks different with the default TextView?

2011-04-04 Thread mathcat
Thank skink!

But why the lines are thinner than TextView? How to handle that?

On Apr 4, 9:41 pm, skink psk...@gmail.com wrote:
 On Apr 4, 3:37 pm, mathcat scien...@gmail.com wrote:

  In a custom view extending View, I call mPaint.drawText in the onDraw
  method, with a new Paint object mPaint. But the text drawn looks
  different to the default TextView, the lines are thinner and not
  smooth(like rope bitten by some insects). I just want it to be the
  same look as TextView.How to do that? Sorry I`m not quite familiar
  with Android graphics

 You can exterminate the insects with special weapon called
 antyaliasing.

 pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Text drawn by mPaint.drawText looks different with the default TextView?

2011-04-04 Thread lbendlin
http://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html

look for the antialiases tag

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en