i failed at getting a string length in pixels