This would only work if the different fonts have widths resulting from a scaling. E.g., if the glyph widths of one font are all 90% of the widths of the corresponding glyphs of the other font, an 111% scale would fix it. But with different fonts, some glyphs may be smaller, other glyphs may be wider.

A better solution would be to designate the actual font to use, so you can be sure it is always the same font and the same glyphs with the same widths.