Re: NSBezierPath append CGGlyph
Re: NSBezierPath append CGGlyph
- Subject: Re: NSBezierPath append CGGlyph
- From: Keith Duncan <email@hidden>
- Date: Sat, 1 Sep 2007 20:26:39 +0100
Rather than attempting to transcode the entire array into a local
NSGlyph array which would require iteration anyway I decided to
iterate over the array and append the glyphs on a per index basis
using -[NSBezierPath appendGlyph:inFont:] which is working fine. OK so
it's a message send per loop iteration but it's still pretty speedy.
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.
- Keith
_______________________________________________
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