cappuccino/cappuccino — pull request #1651 by aljungberg (2012-08-10 02:46:50+00:00)
Title: Fixed: wrong text sizing across the board for custom fonts.

If a custom font was used with the CSS @font-face syntax, Cappuccino would
calculate the wrong sizes for strings throughout. This could result in e.g.
cut off sizeToFit labels.

The sizing tests were being performed inside of an iframe and that iframe
would not have the same CSS @font-face declarations. For maximum fidelity all
string size tests are now performed in the main document, just off screen.