fdo#75665: Truncate string when clipped on screen.

This improves performance of text layouting by HarfBuzz for very long strings.
HarfBuzz's layout algorithm appears to be more expensive than ICU's.

Change-Id: Ic9738b7b8f0f1a29c51c83b147763118939b90ef