Changeset [580da9caefd605a2a391afbb0f0c3569270f5134] by Alexander Ljungberg

August 9th, 2012 @ 04:46 PM

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.
https://github.com/cappuccino/cappuccino/commit/580da9caefd605a2a39...

Committed by Alexander Ljungberg

  • M AppKit/Platform/DOM/CPPlatformString.j
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins