NSTextContainer exclusionPaths should honor evenOddFillRule
| Originator: | robnapier | ||
| Number: | rdar://14740241 | Date Originated: | 14-Aug-2013 05:56 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: |
Summary:
The exclusionPaths property seems to apply the greatest extent of a path rather than applying its fill rule.
Steps to Reproduce:
UIBezierPath *exclusionPath = [UIBezierPath bezierPathWithRect:self.view.bounds];
[exclusionPath appendPath:[UIBezierPath bezierPathWithOvalInRect:self.view.bounds]];
exclusionPath.usesEvenOddFillRule = YES;
NSLog(@"%d", [exclusionPath containsPoint:CGPointMake(CGRectGetMidX(self.view.bounds),
CGRectGetMidX(self.view.bounds))]);
self.textView.textContainer.exclusionPaths = @[ exclusionPath ];
Expected Results:
This should fill an ellipse with text, matching the behavior of [exclusionPath fill]. The NSLog demonstrates that the center of the view should not be part of this exclusion path.
Actual Results:
No text is displayed.
Regression:
No.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!