Re: Stroking a CATextLayer
Re: Stroking a CATextLayer
- Subject: Re: Stroking a CATextLayer
- From: David Duncan <email@hidden>
- Date: Tue, 3 Feb 2009 10:09:37 -0800
On Feb 3, 2009, at 7:43 AM, Benjamin Dobson wrote:
On 3 Feb 2009, at 15:05:51, glenn andreas wrote:
On Feb 3, 2009, at 8:50 AM, Benjamin Dobson wrote:
Has anyone managed this, short of creating a separate layer for
the stroke? The Google machine doesn't seem to provide any answers.
Since CATextLayer uses an attributed string, why can't you just set
the attributes to have the text stroked (set the
NSStrokeColorAttributeName appropriately, and then use a negative
value for the NSStrokeWidthAttributeName to indicate that the text
should be both stroked and filled).
That is what I would expect; however, the layer does not stroke the
text.
The CATextLayer uses Core Text to do its drawing, so it supports what
Core Text supports (and I'm not familiar with what the limitations are
here). It will likely be simpler to draw the text yourself into a
plain CALayer rather than try to make the CATextLayer do what you want
to do.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden