FROM : Douglas Davidson
DATE : Sun Dec 12 21:31:56 2004
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
DATE : Sun Dec 12 21:31:56 2004
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
| Related mails | Author | Date |
|---|---|---|
| Nick Zitzmann | Dec 11, 00:11 | |
| Douglas Davidson | Dec 12, 21:31 | |
| Nick Zitzmann | Dec 14, 02:09 | |
| Douglas Davidson | Dec 14, 02:20 | |
| Nick Zitzmann | Dec 14, 02:52 |






Cocoa mail archive

