• 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
Problem: Glyps get drawn outside Line Fragment Rect.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem: Glyps get drawn outside Line Fragment Rect.


  • Subject: Problem: Glyps get drawn outside Line Fragment Rect.
  • From: chaitanya pandit <email@hidden>
  • Date: Sat, 12 Jul 2008 11:19:01 -0400

In my custom NSTextView i override NSTextContainer's
lineFragmentRectForProposedRect: sweepDirection: movementDirection: remainingRect:
method to lay text only in certain parts of the text view, so in this method, i return the line fragment rectangles in which i allow text to be laid.


The problem is that, in certain cases like very large fonts, glyphs are drawn outside the returned line fragment rect. even though the width of the returned line fragment is too small to accommodate the glyph.
How can i prevent this?




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: triangulating webcams
  • Next by Date: Re: garbage collection and NSConnection
  • Previous by thread: Re: Triangulating webcams
  • Next by thread: Servicing Core Animations?
  • Index(es):
    • Date
    • Thread