• 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: glenn andreas <email@hidden>
  • Date: Tue, 03 Feb 2009 09:05:51 -0600


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).



Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! JSXObjC | the easy way to unite JavaScript and Objective C




_______________________________________________

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


  • Follow-Ups:
    • Re: Stroking a CATextLayer
      • From: Benjamin Dobson <email@hidden>
References: 
 >Stroking a CATextLayer (From: Benjamin Dobson <email@hidden>)

  • Prev by Date: Re: Read lines from very large text file
  • Next by Date: garbage collection is ON NSCFDictionary crash
  • Previous by thread: Stroking a CATextLayer
  • Next by thread: Re: Stroking a CATextLayer
  • Index(es):
    • Date
    • Thread