On Sun, Mar 6, 2011 at 2:23 AM, Hari Edo <[email protected]> wrote: > Try setting the text value after setting the typeface? It may > incorrectly > cache the measurement using the view's Paint's font, and not revise > that > measurement when the typeface is changed. >
Thanks. I had the same idea, but unfortunately it doesn't work. I've tried setting the text in onStart() instead of in onCreate(), using postDelayed() and combinations thereof. It does seem it's a bug in 2.2, fixed in 2.3, but the closest relevant change I found says 'Fix bug 3061544 and some clipping errors.' and that's not too helpful. http://android.git.kernel.org/?p=platform/frameworks/base.git;a=commitdiff;h=abcbb1a1989e8c6adec607b3964dc187f5526e66 And then, of course, loading the font fails on Gingerbread fails with the even more helpful 'native typeface cannot be made'.... -- 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

