• 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
NSString -drawAtPoint:withAttributes: bug on 10.2/10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString -drawAtPoint:withAttributes: bug on 10.2/10.3


  • Subject: NSString -drawAtPoint:withAttributes: bug on 10.2/10.3
  • From: Simone Tellini <email@hidden>
  • Date: Wed, 13 Sep 2006 19:58:01 +0200

Hi,

I've stumbled upon the following bug in OS X 10.2/10.3 and I can't find
any usable workaround.

When printing, I use the same rendering routines I use for screen output,
preceeding them with a CGContextScaleCTM() call to fit the page.

The problem is, all the text drawn with -drawAtPoint:withAttributes:
gets clipped on the right of the page. On 10.4 it works fine.

It seems like it obeys to its own special clipping region.

I've tried to setup a clipping region with NSBezierPath -setClip after
scaling the context, but NSString ignores it.

I've also tried returning NO from -wantsDefaultClipping (which should
work on OS X 10.3) but it didn't help.

Does anyone know a way to get -drawAtPoint: work as it should?

I'm also open to suggestions on how to deal with the problem otherwise,
keeping in mind that the rendering code that produces the final output
is quite long and I'd like to make as little changes as possible to it
(also, I don't want to create a special version just for printing).

--
Simone Tellini
http://tellini.info

 _______________________________________________
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

  • Prev by Date: Re: NSTextView/NSLayoutManager bug?
  • Next by Date: Core Data and Search / Filter Fields
  • Previous by thread: Re: NSTableView drag and drop too smart for its own good
  • Next by thread: Core Data and Search / Filter Fields
  • Index(es):
    • Date
    • Thread