Compare two different font stacks. If a given font is not installed on a client machine, it is very unlikely that the following two elements would be the same width (but this can be tested beforehand):
To reduce the scope of the requisite page reflows, we create these two elements inside an absolutely positioned, hidden div. We add the div to the DOM and immediately remove it after comparing the relative dimesions of the two elements.
Give it a try.