Re: NSBezierPath append CGGlyph
Re: NSBezierPath append CGGlyph
- Subject: Re: NSBezierPath append CGGlyph
- From: Alastair Houghton <email@hidden>
- Date: Mon, 3 Sep 2007 00:15:40 +0100
On 1 Sep 2007, at 20:26, Keith Duncan wrote:
Getting the raw CGGlyphs myself and appending them, rather than
getting NSGlyphs from an NSLayoutManager object is speedier and has
provided the speed up I was looking for. Since this is a category
method I don't actually have a text storage or layout manager
object and was having to allocate them both everytime the method ran.
Though by doing this, you might be losing a lot of typographic
support that you get for free with NSLayoutManager. Of course, it
depends on how you're getting the raw glyphs in the first place.
You can always allocate and set up the text system ahead of time,
then use that one copy to generate the glyphs you need (i.e. you
don't need to do it on every method call).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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