• 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: 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


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>)
 >Re: NSBezierPath append CGGlyph (From: Keith Duncan <email@hidden>)

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