cocos2d/cocos2d-x — pull request #7179 by adamfischer (2014-06-23 11:42:32+00:00)
Title: -Cocos2d-x used a deprecated method to get the content size of a CCLabel...

Cocos2d-x used a deprecated method to get the content size of a CCLabelTTF on iOS 7.

It did not work correctly on iOS7, If a CCLabelTTF was created with 0 height, it resized itself to contain its contents, but the calculated size was smaller than the real size of what the label required. This caused letters like 'J' to be cropped.

The problem was the deprecated sizeWithFont method in CCImage calculateStringSize. This worked correctly until iOS6, but gives bad results on iOS7.

In this fix on iOS6+ boundingRectWithSize is used instead of sizeWithFont in CCImage.mm. CCLabelTTF height is now calculated correctly.

See: http://stackoverflow.com/questions/22537998/cclabelttf-contentsize-different-in-ios-6-and-ios-7-cocos2d-x/24364262#24364262