2

(KitKat の) "View profile" Androidのような文字列の場合、Paint.breakText12 文字ではなく 11 文字が返されます。

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

で 11 ではなく 12 文字を返す必要があります。これは、"View profile"の"fi"numberofcharsが原因のようです。

4

0 に答える 0