fix text size calculations for multiple line strings