Fix for dynamic-line-break

- Generating line broken string before measuring drawing bounds.