• 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: Changing font color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing font color


  • Subject: Re: Changing font color
  • From: Graham Cox <email@hidden>
  • Date: Thu, 13 Aug 2009 10:02:53 +1000


On 13/08/2009, at 7:09 AM, Agha Khan wrote:

CGContextSelectFont(ctx, "Times New Roman", 26, kCGEncodingMacRoman);

It works fine, but who can I change the color of the font?


set the context's fill and/or stroke colours as usual and use CGContextSetTextDrawingMode to set how the text uses them.

--Graham


_______________________________________________

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: 
 >Changing font color (From: Agha Khan <email@hidden>)

  • Prev by Date: Re: NSPredicate & Editor questions
  • Next by Date: Rotation and translation of an image
  • Previous by thread: Changing font color
  • Next by thread: Rotation and translation of an image
  • Index(es):
    • Date
    • Thread