You need to enable anti-aliasing your Paint object:
myPaint.setAntiAlias(true)

On Sun, May 15, 2011 at 1:00 PM, RLScott <[email protected]> wrote:

> If you look closely at a TextView, you will see that it is clean and
> clear because it uses half-tone shading to avoid that pixelated look.
> But in my custom view I am calling drawText, and the results are not
> as good.  The stuff drawn with drawText looks a bit ragged because it
> does not use any half-tone shading.  Every pixel is either completely
> black or completely white.  How can I get Canvas.drawText() to look as
> good as the text in a TextView?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them

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

Reply via email to