It is crucial for my app to be able to accurately measure Strings; I have 
been usingPaint.measureText() to do this. Unfortunately, in 4.4, this 
method was changed to no longer return a precise value, instead it returns 
a up-rounded value. Is anyone aware of another method I can use to 
precisely measure text, or have any other suggestions?

Android source:

Android 17
  return w*mInvCompatScaling;Android 18
  return (float) Math.ceil(w*mInvCompatScaling);

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to