Get text bounds of space

android

Solution

The solution is to use `paint.measureText(String.valueOf(' '))` instead.

Problem

How to measure bounds of space in android? I mean, the following: ``` Rect bounds = new Rect(); paint.getTextBounds(String.valueOf(' '), 0, 1, bounds); return bounds.width(); ``` returns 0.

Original source