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