Made a fix to calcApproxTextWidth, to fix bug on IE9.