Re: NSGlyphGenerator behavior
Re: NSGlyphGenerator behavior
- Subject: Re: NSGlyphGenerator behavior
- From: Aki Inoue <email@hidden>
- Date: Sat, 07 Aug 2010 14:01:07 -0700
No, it doesn't chunk based on word boundary.
It could callback in chunks in order to prevent allocating too large buffer, though.
So, you should be prepare to insert whatever requested.
Aki From iPhone
On 2010/08/07, at 9:14, vincent habchi <email@hidden> wrote:
> Hi there,
>
> There is little documentation available on the working of NSGlyphGenerator (or concrete subclasses thereof). If there is any guru lurking around, I'd like to know if it is expected that, upon sending a string for glyph generation through
> -(void)generateGlyphsForGlyphStorage: desiredNumberOfCharacters: glyphIndex: characterIndex:, the callback (-(void)insertGlyphs: length: forStartingGlyphAtIndex: characterIndex:) gets invoked more than once with chunks of the original string corresponding to words or spaces (that is to say, the shared NSGlyphGenerator splits the string into words and spaces)?
>
> Actually, that's more than fine for my purpose, but, precisely, it seems even too fine to be true, so I'm a bit cautious! :)
>
> Thanks!
> Vincent_______________________________________________
>
> 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
_______________________________________________
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