Re: Getting the visible glyph range
Re: Getting the visible glyph range
- Subject: Re: Getting the visible glyph range
- From: Douglas Davidson <email@hidden>
- Date: Sun, 12 Dec 2004 12:31:56 -0800
On Dec 10, 2004, at 3:11 PM, Nick Zitzmann wrote:
I already checked the archives, and one solution,
<http://www.cocoabuilder.com/archive/message/2002/2/18/14388>, did not
work. For some reason, -glyphRangeForBoundingRect:inTextContainer: is
returning the range for _all_ of the glyphs in the text container
instead of just the glyphs in the bounding rect. How do I get the
range of all of the glyphs in the bounding rect?
I'm not sure what the issue is here, but that method is designed to
return a single range covering all of the the glyphs needed to display
for that bounding rect, so it may certainly have some excess. You can
get more detailed information by going through that range line by line
and looking at the locations of the glyphs in it.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden