Modified text rect calculation.