Re: LayoutManager
Re: LayoutManager
- Subject: Re: LayoutManager
- From: Douglas Davidson <email@hidden>
- Date: Tue, 27 Nov 2001 09:06:13 -0800
On Monday, November 26, 2001, at 09:32 PM, Charles Jolley wrote:
Just a thought...try NSLayoutManager's:
- (void)setNotShownAttribute:(BOOL)flag
forGlyphAtIndex:(unsigned)glyphIndex;
I haven't used this myself...but it looks like it might do what you are
wanting!
Setting the not shown attribute means that the glyph will not be drawn,
but unless you do something more it will still be laid out normally. To
really collapse the hidden text, you would not want the corresponding
glyphs to occupy any space in the layout, which means a custom
typesetter. This is why the not shown attribute is customarily set by
the typesetter--the stock system typesetter uses it for control glyphs
and for glyphs clipped at the end of a line.
Douglas Davidson