Measure the text before doing line break

Bug: 65024629
Test: N/A
Change-Id: Ifa7be17b87687f95f045de1409fb554991269ebc
2 files changed