Re: Subclassing NSTypesetter: NSRunStorage exception
Re: Subclassing NSTypesetter: NSRunStorage exception
- Subject: Re: Subclassing NSTypesetter: NSRunStorage exception
- From: Douglas Davidson <email@hidden>
- Date: Tue, 1 Oct 2002 09:50:50 -0700
On Tuesday, October 1, 2002, at 03:45 AM, Jirtme Laurens wrote:
glyphRange = NSMakeRange(0, end);
I'm not sure exactly what is going wrong here, but one thing that
stands out is that you seem to be assuming a one-to-one correspondence
of characters to glyphs. That may actually be the case for your text,
but you need to at least ask the layout manager to convert between
character and glyph indexes. The layout manager is lazy about its
glyph generation, so if you never ask then it may never have generated
the glyphs you need.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.