[core] Add deprecation warning guards around -[NSString sizeWithFont:constrainedToSize:lineBreakMode:] calls.

Add deprecation warning suppression around -[NSString sizeWithFont:constrainedToSize:lineBreakMode:] calls.