Bug 1021133 - make getFontWidth fontStyle aware

What you say is true, but this approach has the lowest impact and should fix it for bug 983812 without requiring rebase. Since all this logic is moving into the header web component for 2.1 anyway, I don't think we need to be super robust with this code which will be changed significantly soon.