Fixed missing replacement of kCTForegroundColorAttributeName with NSForegroundColorAttributeName.