Skip navigation.
 
mlRe: Subclassing NSTypesetter: NSRunStorage exception
FROM : Douglas Davidson
DATE : Tue Oct 01 18:50:50 2002

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlSubclassing NSTypesetter: fragment/used rects Jérôme Laurens Sep 30, 09:04
mlRe: Subclassing NSTypesetter: fragment/used rects Douglas Davidson Sep 30, 19:25
mlSubclassing NSTypesetter: NSRunStorage exception Jérôme Laurens Oct 1, 12:45
mlRe: Subclassing NSTypesetter: NSRunStorage exception Douglas Davidson Oct 1, 18:50
mlRe: Subclassing NSTypesetter: NSRunStorage exception (solved) Jérôme Laurens Oct 3, 09:33