Intermediate fix to resolve #3062.

The engine subtracts 2 pixels from the window rect to get the actual
text rectangle dimensions.