• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stroking a CATextLayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stroking a CATextLayer


  • Subject: Re: Stroking a CATextLayer
  • From: Benjamin Dobson <email@hidden>
  • Date: Wed, 4 Feb 2009 17:40:29 +0000

Thank you. I now have it working nicely.

On 3 Feb 2009, at 18:09:37, David Duncan wrote:

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


References: 
 >Stroking a CATextLayer (From: Benjamin Dobson <email@hidden>)
 >Re: Stroking a CATextLayer (From: glenn andreas <email@hidden>)
 >Re: Stroking a CATextLayer (From: Benjamin Dobson <email@hidden>)
 >Re: Stroking a CATextLayer (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Drag and drop images to other application using NSFilesPromisePboardType
  • Next by Date: Re: CoreData migration and file change
  • Previous by thread: Re: Stroking a CATextLayer
  • Next by thread: garbage collection is ON NSCFDictionary crash
  • Index(es):
    • Date
    • Thread