Fix issue with very large text.

Text larger than 2048×2048px was overflowing the internal buffer,
causing it to incorrectly appear in the layout.

Fixes #16.