Look at the documentation of Paint.measureText():
http://code.google.com/android/reference/android/graphics/Paint.html

On Thu, Apr 24, 2008 at 6:01 AM, 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
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to