Re: Replacement for CGContextSelectFont ?
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