There is a pixelcalculator class with this functionality inside the
sdk

On Apr 24, 3:01 pm, Semeria Stefano
<[EMAIL PROTECTED]> wrote:
> Hello
>
> I need to compute the size of a string I'm drawing with Canvas.drawText() in 
> pixels, to be able to surround it with a rectangle.
>
> Do you know if there's a simple way to get the size of the string according 
> to the size of the currently used font?
>
> Thanks a lot for your help.
>
> Regards,
>
> Stefano
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to