Text drawn by mPaint.drawText looks different with the default TextView?

by mathcat » Mon, 04 Apr 2011 21:37:40 GMT


Sponsored Links
 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.

-- 



Re: Text drawn by mPaint.drawText looks different with the default TextView?

by skink » Mon, 04 Apr 2011 21:42:07 GMT


 


You can exterminate the insects with special weapon called
antyaliasing.

pskink

-- 


Sponsored Links


Re: Text drawn by mPaint.drawText looks different with the default TextView?

by mathcat » Mon, 04 Apr 2011 21:46:03 GMT


 Thank you skink!

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






-- 



Re: Text drawn by mPaint.drawText looks different with the default TextView?

by mathcat » Mon, 04 Apr 2011 21:48:00 GMT


 Thank skink!

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






-- 



Re: Text drawn by mPaint.drawText looks different with the default TextView?

by lbendlin » Mon, 04 Apr 2011 23:26:24 GMT


Other Threads

1. picasa

I would love to see picasa updated for Android. I think that the
ability to upload photos from your phone right to the site would be
the best feature ever.

--~--~---------~--~----~------------~-------~--~----~

2. RIL GPRS data channel

Hi all,
In ril.h
/**
 * RIL_REQUEST_SETUP_DEFAULT_PDP
 *
 * Configure and activate PDP context (CID 1) for default IP
connection
 *
 * Android Telephony layer will start up pppd process on specified
 * tty when this request responded to.
Does this mean PPP is required for GPRS data connection?
Does android support raw IP GPRS interface like NDIS in Windows
mobile?
Can GPRS work if  ro.radio.use-ppp=no?
Thanks

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. API google map key

4. why can not get the file items under /data

5. how to config android route gateway ?

6. Media Recorder from application is not working

7. Trouble booting my own built kernel