See TextUtil::width where we do the "measureWithEndSpace" part.
*** This bug has been marked as a duplicate of bug 230593 ***