Ticket #628 (closed defect: fixed)
CTFramesetterCreateFrame doesn't like the CFRange type
| Reported by: | easco@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description (last modified by martinlagardette@…) (diff)
An attempt to call CTFramesetterCreateFrame and passing a CFRange structure generates an error message:
unrecognized runtime type `{?=qq}'
Here's the script I was using:
font = NSFont.fontWithName("TrebuchetMS", :size=> 24.0) attributes = NSDictionary.dictionaryWithObjectsAndKeys(font, NSFontAttributeName, nil) attributedString = CFAttributedStringCreate(nil, "$", attributes) framesetter = CTFramesetterCreateWithAttributedString(attributedString) framePath = CGPathCreateMutable() CGPathAddRect(framePath, nil, CGRectMake(4, 4, 32, 32)); textFrame = CTFramesetterCreateFrame(framesetter, CFRangeMake(0.0, 1.0), framePath, nil);
Change History
Note: See
TracTickets for help on using
tickets.

