Fix issue with dojox/html/metrics and font size, fixes #18080

Simple patch to the metrics code to not leave a page in a mangled state on IE when font metrics are being calculated.  It only does transitory setting of the page font to get the initial numbers now as the original setting is restored at the end of the function.