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

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


  • Follow-Ups:
    • Re: CGContextShowTextAtPoint
      • From: "Raglan T. Tiger" <email@hidden>
References: 
 >CGContextShowTextAtPoint (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: New warning in Xcode 7
  • Next by Date: Re: New warning in Xcode 7
  • Previous by thread: Re: CGContextShowTextAtPoint
  • Next by thread: Re: CGContextShowTextAtPoint
  • Index(es):
    • Date
    • Thread