Added font size correction
Added lineHeight formatting setting
Added catch to prevent empty lines from breaking the height calculation