• 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: Replacement for CGContextSelectFont ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacement for CGContextSelectFont ?


  • Subject: Re: Replacement for CGContextSelectFont ?
  • From: Graham Cox <email@hidden>
  • Date: Fri, 16 Sep 2016 08:55:49 +1000

Another alternative, if you’re going to go high-level, is to use a CATextLayer.


—Graham


> On 16 Sep 2016, at 12:46 AM, Alex Kac <email@hidden> wrote:
>
> One thing you might consider is just using an attributed string:
>
> NSAttributedString* attrString = [[NSAttributedString alloc] initWithString:@"Text" attributes:@[NSFontAttributeName:[NSFont fontWithName:@"Times" size:16]]];
> [attrString drawAtPoint:somePoint];
>
> Something like that, at least.


_______________________________________________

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: Replacement for CGContextSelectFont ?
      • From: Gabriel Zachmann <email@hidden>
References: 
 >Replacement for CGContextSelectFont ? (From: Gabriel Zachmann <email@hidden>)
 >Re: Replacement for CGContextSelectFont ? (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: Replacement for CGContextSelectFont ?
  • Next by Date: Re: Linking against AVKit breaks app on 10.6
  • Previous by thread: Re: Replacement for CGContextSelectFont ?
  • Next by thread: Re: Replacement for CGContextSelectFont ?
  • Index(es):
    • Date
    • Thread