• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the visible glyph range
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting the visible glyph range
      • From: Nick Zitzmann <email@hidden>
References: 
 >Getting the visible glyph range (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSAttributedString advice
  • Next by Date: Re: How can I implement labels without the overhead of an NSTextField?
  • Previous by thread: Getting the visible glyph range
  • Next by thread: Re: Getting the visible glyph range
  • Index(es):
    • Date
    • Thread