• 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: Font Color In CTLineDraw?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font Color In CTLineDraw?


  • Subject: Re: Font Color In CTLineDraw?
  • From: David Duncan <email@hidden>
  • Date: Tue, 2 Sep 2008 20:55:35 -0700

On Sep 2, 2008, at 7:43 PM, Mike Rossetti wrote:

[attrString addAttribute:NSForegroundColorAttributeName
                   value:[NSColor lightGrayColor] // No effect.
                   range:NSMakeRange(0, [attrString length])];


Rendering a font with an NSColor attribute requires a current NSGraphicsContext. If you don't have one, then it will take the color form the CGContextRef instead.
--
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


  • Follow-Ups:
    • Re: Font Color In CTLineDraw?
      • From: Mike Rossetti <email@hidden>
References: 
 >Font Color In CTLineDraw? (From: Mike Rossetti <email@hidden>)

  • Prev by Date: [MEET] CocoaHeads Mac Developer Meetings
  • Next by Date: Re: [OT] curious about the iPhone dev program
  • Previous by thread: Font Color In CTLineDraw?
  • Next by thread: Re: Font Color In CTLineDraw?
  • Index(es):
    • Date
    • Thread