2

For the string like "View profile" Android's Paint.breakText (on KitKat) returns 11 characters instead of 12.

numberofchars = MyPaint.breakText ("View profile", // String text, 
           true, //     boolean measureForwards, 
           8192, //     float maxWidth, 
           null) //     float[] measuredWidth)

It must return 12 chars in numberofchars, not 11. It looks like it's because of the "fi" in "View profile".

Onik
  • 19,396
  • 14
  • 68
  • 91
zeus
  • 12,173
  • 9
  • 63
  • 184

0 Answers0