Re: Valid glyphs in NSLayoutManager
Re: Valid glyphs in NSLayoutManager
- Subject: Re: Valid glyphs in NSLayoutManager
- From: Brock Brandenberg <email@hidden>
- Date: Tue, 10 Sep 2002 16:05:04 -0500
>
No. NSControlGlyph is the stand-in in the glyph stream for control
>
characters, notably line breaks and tabs. It is not a displayable
>
glyph; it is a signal to the typesetter to perform some special layout,
>
such as moving to the next tab stop.
So the final result is that the following code would be an acceptable test
for a displayable glyph:
glyph = [layoutManager glyphAtIndex:i isValidIndex:&isValid];
if( isValid && ( NSNullGlyph != glyph || NSControlGlyph != glyph ) )
{
// should have something to display or retrieve geometry from
}
If it passes these tests, there should be a displayable glyph, assuming that
the font is being properly considered. Correct?
Thanks,
Brock
----- industrial design @ www.bergdesign.com ------
_______________________________________________
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.