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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to