• 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: Clipping text from NSLayoutManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clipping text from NSLayoutManager


  • Subject: Re: Clipping text from NSLayoutManager
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 1 Mar 2007 23:48:55 -0800


On Mar 1, 2007, at 11:40 PM, Thomas Dingler wrote:

Hi,

I want to clip my drawing area using CGContextClipToRect. This work very well on NSImage, CIImage, NSRectFill and so on.

But it does not work if I want to clip my text output, that is drawn by

[layoutmanager drawGlyphsForGlyphRange:glyphRange atPoint:origin];

The text will be drawn ignoring the clipping rect.

Any ideas?

That's a bug. If you can reproduce it in a small test case, please report it.


-jcr


“The two most important tools an architect has are the eraser in the drawing room and the sledge hammer on the construction site. ”
-Frank Lloyd Wright


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Clipping text from NSLayoutManager (From: Thomas Dingler <email@hidden>)

  • Prev by Date: NSTabView-like view and NSWindowController
  • Next by Date: Re: drawRect problem
  • Previous by thread: Clipping text from NSLayoutManager
  • Next by thread: Re: NSColor opacity
  • Index(es):
    • Date
    • Thread