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

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


  • Follow-Ups:
    • Re: NSBezierPath append CGGlyph
      • From: Alastair Houghton <email@hidden>
References: 
 >NSBezierPath append CGGlyph (From: Keith Duncan <email@hidden>)
 >Re: NSBezierPath append CGGlyph (From: Scott Thompson <email@hidden>)
 >Re: NSBezierPath append CGGlyph (From: Keith Duncan <email@hidden>)
 >Re: NSBezierPath append CGGlyph (From: Shawn Erickson <email@hidden>)
 >Re: NSBezierPath append CGGlyph (From: Keith Duncan <email@hidden>)

  • Prev by Date: Custom Background For NSTextView
  • Next by Date: [ANN] RegexKit - An Objective-C Framework for Regular Expressions Using the PCRE Library
  • Previous by thread: Re: NSBezierPath append CGGlyph
  • Next by thread: Re: NSBezierPath append CGGlyph
  • Index(es):
    • Date
    • Thread