Re: CGContextShowTextAtPoint
Re: CGContextShowTextAtPoint
- Subject: Re: CGContextShowTextAtPoint
- From: Wim Lewis <email@hidden>
- Date: Tue, 13 Oct 2015 15:42:55 -0700
On Oct 13, 2015, at 3:02 PM, Raglan T. Tiger <email@hidden> wrote:
> CGContextShowTextAtPoint (ctx, pt.x,pt.y,(const char*)txt, len );
>
> This has printed my text UNTIL 10.11.
>
> I see that CGContextShowTextAtPoint is deprecated in 10.9 ... is it gone in 10.11?
As Quincey Morris says, Core Text is the recommended low-level API for drawing text now. It handles some typographical niceties that a direct PDF-equivalent CG call doesn't.
Another option is the -[NSAttributedString drawAtPoint:] method, which is a very easy method for simple string drawing.
_______________________________________________
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