Yes. TextView#getTypeface( ) gives me the handle to the Typeface object, but Typeface doesn't provide a way to get font name information. What I'm trying to do is to query the text metrics (font name, font size, type, widget width, widget height, string id, and etc) for all TextView widgets for a given Activity at runtime. This is needed to support translation tools.
String Id is another issue. TextView doesn't keep the string id around. Is there other ways to go about this? Google engineers: Please advise if this makes sense and I should log an enhancement request. Thanks! On Jan 16, 4:47 pm, Al <[email protected]> wrote: > I think they use Serif and Sans Serif (and their formatted variants) > seeing how there's no mention of any other fonts inside the Typeface > class. Have you tried calling TextView#getTypeface()? > > On Jan 16, 7:12 pm, Khuong <[email protected]> wrote: > > > Hi, > > > Is there a way to know what font (name) is being used for a TextView > > widget? I've looked at the Typeface class, but it doesn't offer a way > > to retrieve the familyName attribute. > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

